CRUD App with Node and MongoDB
- Node
- Express
- MongoDB
- Mongoose
- Download and install NodeJS
- Clone this repository
- In the root folder, run: npm install
For MongoDB
- Create an account on mlab.com
- Create a database
- Create a database user/pass
- Get the connection string
- Rename the .env.example file (located in the root folder) to .env
- Paste mongodb connection string in .env file
Run:
- Start the server, run: node server.js (if you are developing, you can use nodemon instead for watching file changes. Install nodemon, run: npm install -g nodemon) and start the server, run: nodemon server.js
- On your browser: localhost:8989