İnstall,
+
Creating MongoDB "blogApi" database
+
you can edit database information: (helper/db.js)
+
npm install
+
npm run start:dev
+
http://localhost:3000
happy ending :).
Route |
HTTP Verb |
/api/post/ |
GET |
/api/post/ |
POST |
/api/post/:post_id |
GET |
/api/post/:post_id |
PUT |
/api/post/:post_id |
DELETE |
Route |
HTTP Verb |
/api/user/ |
GET |
/api/user/ |
POST |
/api/user/:user_id |
GET |
/api/user/:user_id |
PUT |
/api/user/:user_id |
DELETE |
Route |
HTTP Verb |
Description |
/ |
GET |
Homepage |
/api/login/ |
POST |
User login and generate a token. |