jcharles921-My_Brand_Charles_BACKEND
Go to the project repo on github and clone it to your local machine. Run the following scripts
npm i
to install the project dependencies.
touch .env
to create a dotenv file. Use the project .env.example to make sure all the environment variables are captured and used.
Install the following packages
- "bcrypt": "^5.1.0",
- "body-parser": "^1.20.2",
- "cors": "^2.8.5",
- "dotenv": "^16.0.3",
- "express": "^4.18.2",
- "jsonwebtoken": "^9.0.0",
- "mongoose": "^6.10.0"
- "morgan": "^1.10.0",
- "nodemon": "^2.0.20"
Run npm run dev
to start the server locally;
HTTP Request |
Endpoint |
Description |
POST |
/api/v1/Signup |
AllUsers signUp |
POST |
/api/v1/Login |
Allusers Signin |
HTTP Request |
Endpoint |
Description |
GET |
/api/v1/CRUD |
Used to get all the Blogs articles available |
POST |
/api/v1/CRUD |
Used to create a new article blog |
GET |
/api/v1/CRUD/id |
Used to get a single article blog |
PUT |
/api/v1/CRUD/id |
Used to update a blog article |
DELETE |
/api/v1/CRUD/id |
Used to delete a blog article |
Comment
HTTP Request |
Endpoint |
Description |
PATCH |
/api/v1/comment/articleId |
Used to put a comment on article |
HTTP Request |
Endpoint |
Description |
GET |
/api/v1/queries |
Used to get all the messages sent |
POST |
/api/v1/queries |
Used to send message |
GET |
/api/v1/queries |
Used to get a single blog |
DELETE |
/api/v1/queries |
Used to delete a message |