My goal from this project is to try a simple MERN stack project. The project shows books and other related data, that data is stored on MongoDB, and pushed via Expressjs to the client that uses React.
Go to the backend folder Go to the frontend folder
cd frontend
npm install
npm run dev- add configuration of your database in comfig.js in the backend folder
- add IP address in MongoDB network configuration
-
create a backend and frontend folders
-
add .gitignore file
-
run
npm init -yinside the backend folder to initialize package.json file -
modify the package.json file
-
run
node i express nodemon -
npm i cors -
frontend:
cd frontend
npm i react-router-dom
npm i axios react-icons
npm i notistackrface in VS Code to create a component (ES7 + React ...)