This project was mainly for learning. I was learning this through youtube video by Prawito Hudoro 3 years ago. Check his channel through this link, he is really good instructor. As times goes by, I finally have a time to update this repository. No fancy config such as eslint and prettier here, so you can understand it and beginner friendly.
- NodeJS
- Express
- Express Validator
- Jsonwebtoken
- Bcryptjs
- MongoDB
$ git clone https://github.com/rimamei/Mern-blog-server.git
$ cd Mern-blog-server
$ npm install
DATABASE_URI=
PORT=
JWT_ACCESS_SECRET=
JWT_EXPIRES_IN=
$ npm run dev
No | HTTP Method | URI | Operation |
---|---|---|---|
1 | POST | /api/v1/auth/register | Register user |
2 | POST | /api/v1/auth/login | Login User |
No | HTTP Method | URI | Operation |
---|---|---|---|
1 | GET | /api/v1/blog | Get all blog data |
2 | GET | /api/v1/blog/:id | Get detail blog by id |
3 | POST | /api/v1/blog | Create blog |
4 | DELETE | /api/v1/blog/:id | Delete blog |
5 | PUT | /api/v1/blog/:id | Edit blog |
Copyright © 2024 Rima Mei Handayani