- Sign up / login
- Create tweets
- Follow other users
- Fetch their tweets
- See tweets from people who they follow
- Express JS
- Type Script
Install the dependencies and devDependencies and start the server.
$ npm install
Running the backend project...
$ npm run dev
Verify the deployment by navigating to your server address in your preferred browser.
127.0.0.1:8080
Running seed...
$ npm run seed
Running test...
$ npm run test
POST /api/v1/users/signup
POST /api/v1/users/login
POST /api/v1/follows/:userId
POST /api/v1/tweets
GET /api/v1/tweets
GET /api/v1/tweets?limit=10&offset=0
GET /api/v1/tweets/feeds
GET /api/v1/tweets/feeds?limit=10&offset=0
{
"data": [],
"totalCount": 0,
"itemPerPage": 10,
"totalPage": 1,
"success": true
}
{
"message": "Tweet saved successfully",
"success": true
}
{
"token": "Bearer <token>",
"message": "User registered successfully",
"success": true
}
Status Code | Description |
---|---|
200 | OK |
201 | CREATED |
400 | BAD REQUEST |
404 | NOT FOUND |
500 | INTERNAL SERVER ERROR |
MIT