Freestyle project for learning purpose with Node.js, Express.js, Mongodb and JWT
This project uses the following technologies:
Technologie | Version |
---|---|
express | 4.17.1 |
mongoose | 2.0.2 |
jsonwebtoken | 8.5.1 |
multer | 1.4.2 |
bcrypt | 1.4.2 |
// clone repository
https://github.com/hamdinawfel/crud-api.git
// Install the dependencies
npm install
// Run the server with nodemon
nodemon server
Make sure to update config/keys.js
file,
module.exports = {
mongoURI: "YOUR_MONGO_URI_HERE",
secretOrKey: "YOUR_SECRET_KEY_HERE"
};
./
├── config
├── middlewares
├── uplaods
├── controllers
│ ├── post.js
│ :
│ └── ...
├── models
│ ├── post.js
│ :
│ └── ...
│
├── routes
│ ├── posts.js
│ :
│ └── ...
│
└── server.js