learning PERN (PostgreSQL, express.js, reactJS and node.js) This is a to-do list to improve my knowledge in full stack web develpment
ref: https://www.youtube.com/watch?v=ldYcgPKEZC8
//Before initializing the server, download postgreSQL and follow the steps in database.sql and configure the database in db.js //initialize the server in the package "server" with $node start
//PostgreSQL //Express.js //ReactJS //Node.js
//First go to your psql and create a database with a "database_name"(any name you want), and create a table "todo"(this has to be this name because of the code), after this you have to go to db.js and configure your database. Now just go to the folder /server and run the code $node index.js. To start client side go to the folder /client and run the code $npm start
//codes used inside server package
$npm init
$npm i express pg cors
//Codes used in client side
$npx create-react-app "name"
deleted tests
created components folder and files
//Setting up environment to client with bootstrap //copying the css in the /public/index.html in the stylesheet and copying the js in the script. Link to bootstrap: https://getbootstrap.com/docs/4.0/getting-started/introduction/
//Link used to get modals, bootstrap codes #https://www.w3schools.com
//if you dont have the dependencies run $npm install //start client side inside the client package with $npm start //build with $npm run build