The MERN stack is a JavaScript stack that's designed to make the development process smoother. MERN includes four open-source components: MongoDB, Express, React, and Node. js. CRUD is an acronym that comes from the world of computer programming and refers to the four functions that are considered necessary to implement a persistent storage application: create, read, update and delete.
- Go to terminal and select mern-stack-client folder and run the following commands.
- npm install
- npm start
- Go to terminal and select mern-stack-api folder and run the following commands.
- npm install
- node index.js
- Add your connection url on db.js (current url : mongodb://localhost:27017/postManagerDB)
- create a Database ( postManagerDB )
- create a collection ( postMessages )
Rest API : http://localhost:4000/postMessages Frontend : http://localhost:3000