Introduction:
The purpose of this project is to understand NodeJS along with express by creating a smiple CRUD functionality.
- JWT Auth
- JOI validation
- http-errors
- mongoose
- bcrypt
- multer
https://nodejs-crud-project.up.railway.app/
To deploy this project run
Name |
Type |
Description |
id |
string |
Parameter |
Name |
Type |
Description |
name |
string |
Body |
age |
number |
Body |
email |
string |
Body |
password |
string |
Body |
Name |
Type |
Description |
email |
string |
Body |
password |
string |
Body |
DELETE /api/user/delete/${userId}
Name |
Type |
Description |
userId |
string |
Parameter |
Bearer Token |
string |
Authenticaion |
Name |
Type |
Description |
Title |
string |
Body |
ImageUrl |
file |
Body |
Content |
string |
Body |
Creater |
string |
Body Aka: User Id |
Bearer Token |
string |
Authenticaion |
PUT /api/post/update/${postId}
Name |
Type |
Description |
Title |
string |
Body |
ImageUrl |
file |
Body |
Content |
string |
Body |
Creater |
string |
Body Aka: User Id |
Bearer Token |
string |
Authenticaion |
postId |
string |
Parameter |
DELETE /api/post/delete/${postId}
Name |
Type |
Description |
postId |
string |
Parameter |
Bearer Token |
string |
Authenticaion |