CRUD operations performed using MongoDb, express.js, React.js, Node.js(Fetch products, Post Products, Update products, Delete Products)
Install latest version of Node.js Install mongodb Run mongodb instance on port 27017
It has server side API's to perform all operations. Steps:
- npm install
- Default PORT is running on 3001
- npm start - shows a message 'App server Listening at 3001'
- npm install
- Create a new file .env
- Add PORT= {default port number of your choice} to .env file eg: PORT=7000
- npm start
- Goto http://localhost:7000/
var Schema = mongoose.Schema({ createdAt:{ type: Date, default: Date.now }, productName: String, productDescription: String });