Building an eCommerce Scraper with Node.js and React.js

  • It allows the user to type in a specific product name, to crawl multiple e-commerce sites and asynchronously return useful results to the user.
  • UI and ArchitectureBuilding the front endTo make it short, the front end is really small (only two pages: one for the search box and another one for the results).
  • I moved everything from ‘search term’ to ‘search results items’ into Redux’s state, thus making the code structure cleaner and nicer.
  • Some other problematic factors include: – Not having pre-stored information that could be useful to make predictions.Each result item consisting only of the following data: title, price, URL and thumbnail.My conclusion was to use a weighted ranking algorithm.
  • In a more complete implementation, that data could be useful for some sort of Machine Learning algorithm to predict the most useful way to rank results.

This is a quick story about how I created a simple but end-to-end e-commerce scraping web application called “crawl-io”. The goal behind this article is to provide an example of an implementation so…
Continue reading “Building an eCommerce Scraper with Node.js and React.js”

Vue vs React: Battle of the Javascript Frameworks

#Vue vs #React: Battle of the #Javascript Frameworks 
#VueJS #reactjs

  • I’ve created two nearly identical sample applications, one in Vue and one in React, if you’d like to give either framework a shot in the context of the samples in this article.
  • The biggest difference is that React popularized a Virtual DOM (we’ll get into this later) and created a new syntax called JSX that allows developers to write HTML in JavaScript.
  • Unlike earlier JavaScript frameworks that had ‘batteries included,’ both React and Vue are fairly barebones with functionality like routing and state management handled by separate frameworks.
  • Both React and Vue are focused solely on the UI layer, and leave functionality such as routing and state handling to companion frameworks.
  • In Vue there’s no need to call a state management function like , as the data parameter on the Vue object acts as the holder for application data.

React vs Vue.js. Are you in the market for a shiny new JavaScript UI framework? Find out the main similarities & differences between these two popular ones.
Continue reading “Vue vs React: Battle of the Javascript Frameworks”

Using Horizon/RethinkDB with React

  • Horizon, which is built on RethinkDB and by the RethinkDB team, facilitates common application development tasks like backend setup, real-time data transfer, security and scalability.
  • This tutorial will give you an introduction to Horizon and RethinkDB while also showing you how to build a simple app with Horizon and React.
  • Before hitting the code, let’s learn a few basic Horizon concepts:

    Horizon groups data into horizon collections and each collection is backed by a RethinkDB table.

  • Here’s a visual to help you make sense of the data flow in this app:

    Note that any change in the data is sent from one React client into Horizon and Horizon sends it back to all React apps so they can update their view, this flow makes sure that all clients are always watching the same without inconsistencies.

  • Our app will use two Horizon collections, one for the “we need list” and other for the “we have list”.

Horizon is an open source Backend as a Service (BaaS) that allows developers to easily build data-driven web and mobile applications. Horizon, which is built on RethinkDB and by the RethinkDB team, facilitates common application development tasks like backend setup, real-time data transfer, security and scalability. Horizon can be run locally, on a private server or in the cloud.
Continue reading “Using Horizon/RethinkDB with React”

Mollie – Better payments

  • We make sure that all of Mollie’s packages and plugins, built by us and the community, are open-source and freely available.
  • So whether you prefer building on our API or a quick WooCommerce or Magento plugin, our host of packages and plugins will always allow you to efficiently integrate Payments and Recurring into any project.

Mollie builds payment products, commerce solutions and APIs that let you accept online and mobile payments, for small online stores and Fortune 500s alike.
Continue reading “Mollie – Better payments”

Sketch — A Playground for React Native – Exposition

  • Tools like Create React Native App and Expo make this much easier, but it’s still not quite the same experience as an online demo.I’ve been lucky enough to be working with Charlie Cheever and Jesse Ruder on Sketch for the past month, which addresses these pain points and makes it super easy to try something quickly.
  • And today we’re excited to announce Sketch to the public.Let’s go over the features, shall we?Instantly test your code on a device, or in the browserCreating a new sketch couldn’t be easier.
  • You can either preview the component on the emulator inside the browser, or open it directly on your device with the Expo app.The UI updates as you type — every keystroke, without having to hit save.
  • Facebook Login, BarCode scanner, Accelerometer, Maps, you name it.You can also import the following third party modules which we’ve bundled with the app: @expo/vector-icons, @expo/ex-navigation, react-router-native, react-navigation, react-native-tab-view, redux, react-redux, redux-effex, redux-logger, redux-thunk, apollo-client, react-apollo, graphql-tag, ReactNativeART, art/morph/path, base-64, date-fns, gl-mat4, hsv2rgb, immutable, lodash, pubnub, regl, seamless-immutable, socket.io-client, three, url-parse, uuid-jsvalidatorDrag and drop components to add features instantlyDon’t remember how to use those APIs and too lazy to look it up and copy paste code (and fix the errors, cause you never manage get it right the first time)?
  • Fear not, there’s a component library from where you can just drag and drop components to add a feature instantly!See Device logs in the EditorNeed to log that object to see why your code won’t work?

Today, we’re happy and excited to announce the release of Expo Sketch. You can try it right now by going to https://sketch.expo.io/ on your computer’s web browser. I’ve been always excited about…
Continue reading “Sketch — A Playground for React Native – Exposition”