Subject: Tutorial Outline : Creating A Javascript Web Application With React - Js and Node - Js
Subject: Tutorial Outline : Creating A Javascript Web Application With React - Js and Node - Js
Prerequisites:
- Installing Node.js (Ubuntu) -
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-0
4
- Installing Postgres (Ubuntu) -
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-u
buntu-18-04
- Installing Ngnix (Ubuntu) -
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04-
quickstart
Step 1: Introduction. Quick intro about what readers can expect from this tutorial. Initial setup
and project folder structure.
Step 2: Bootstrap React application with create-react-app. Go through the structure of an
application created this way. Install dependencies we’ll need in this project. We’ll also create
components this application will use like Lane and Ticket. Add CSS.
Step 3: Introduce functionality into React application. This will involve introducing drag and drop
functionality, mocking up data sources, updating state and writing business logic of the
application.
Step 4: Create a simple express application. Go through the structure of an application and
explain where each part of the functionality goes. Explain how to interact with our API (torn
between integration testing (mocha, chai-http) or Postman - probably later due to simplicity and
versatility ).
Step 5: Create DB models and relationships. We will assume the reader has gone through the
prerequisites and installed Postgres. We will use knex.js and Bookshelf.js to interact with our
database from Node.js REST API. Explain how it works and create migrations and models.
Step 6: Set up routes and handle db interactions. Validate requests that initiate data storage for
necessary requirements.
Step 7: Connect React.js application to our newly created REST API. We will implement
mocked up data sources introduced in step 3 and make the front-end interact (get, post put)
with our back-end.
Step 8: Deploying the application. We’ll leverage ngnix to serve our application. This will involve
writing ngnix config file and testing it all out together.