Basic CRUD App Setup With React, Node - JS, Express, MySQL - by Arijit Chowdhury - Medium
Basic CRUD App Setup With React, Node - JS, Express, MySQL - by Arijit Chowdhury - Medium
Continue to Medium
https://medium.com/@arijit_chowdhury/basic-crud-app-setup-with-react-node-js-express-mysql-5e097e1145ff 1/10
26/02/2023 15:31 Basic CRUD App setup with React, Node.js, Express, MySQL | by Arijit Chowdhury | Medium
Continue to Medium
npm init -y
https://medium.com/@arijit_chowdhury/basic-crud-app-setup-with-react-node-js-express-mysql-5e097e1145ff 3/10
26/02/2023 15:31 Basic CRUD App setup with React, Node.js, Express, MySQL | by Arijit Chowdhury | Medium
npm i -D nodemon
Continue to Medium
Your package.json file will look something like this.
Sign up Already have an account? Sign in
https://medium.com/@arijit_chowdhury/basic-crud-app-setup-with-react-node-js-express-mysql-5e097e1145ff 4/10
26/02/2023 15:31 Basic CRUD App setup with React, Node.js, Express, MySQL | by Arijit Chowdhury | Medium
},
Click “Sign Up” to agree to Medium’s Terms of Service and
acknowledge that Medium’s Privacy Policy applies to you.
...
"scripts": {
...
"start": "node server.js",
"start:dev": "nodemon server.js"
},
...
https://medium.com/@arijit_chowdhury/basic-crud-app-setup-with-react-node-js-express-mysql-5e097e1145ff 5/10
26/02/2023 15:31 Basic CRUD App setup with React, Node.js, Express, MySQL | by Arijit Chowdhury | Medium
Note that to view the products you need to add product table and some of the
products to the database.
First of all, create a frontend folder and open a terminal on that folder and
run -
Continue to Medium
so, our frontend is running on port 3000 and our backend is on port 5000.
...,
"proxy": "http://localhost:5000",
...
https://medium.com/@arijit_chowdhury/basic-crud-app-setup-with-react-node-js-express-mysql-5e097e1145ff 7/10
26/02/2023 15:31 Basic CRUD App setup with React, Node.js, Express, MySQL | by Arijit Chowdhury | Medium
Continue to Medium
https://medium.com/@arijit_chowdhury/basic-crud-app-setup-with-react-node-js-express-mysql-5e097e1145ff 8/10
26/02/2023 15:31 Basic CRUD App setup with React, Node.js, Express, MySQL | by Arijit Chowdhury | Medium
This brings to the end of this article. This is a quick tutorial to startup your
React-Node application with MySQL.
https://medium.com/@arijit_chowdhury/basic-crud-app-setup-with-react-node-js-express-mysql-5e097e1145ff 9/10
26/02/2023 15:31 Basic CRUD App setup with React, Node.js, Express, MySQL | by Arijit Chowdhury | Medium
Continue to Medium
happy hacking…..
Sign up Already have an account? Sign in
https://medium.com/@arijit_chowdhury/basic-crud-app-setup-with-react-node-js-express-mysql-5e097e1145ff 10/10