-
Clone the repository
-
Navigate to the project directory
cd project
- Install dependencies
npm install
- Create .env file with the followings:
DATABASE_URL=./data/database.db
DISCORD_BOT_TOKEN=""
GIPHY_API=""
DISCORD_CHANNEL_ID=""
Run Migrations:
npm run migrate:latest
Update types:
npm run gen:types
- Start the app
npm run dev
npm run create-migration -- fileNameProvidedByYou
npm run test
npm run coverage
Request:
- Method: POST
- URL:
http://localhost:3002/students
- Body:
{
"name": "silly",
"username": "john_doe"
}
Request:
- Method: GET
- URL:
http://localhost:3002/students
Request:
- Method: GET
- URL:
http://localhost:3002/students/:id
- Example
http://localhost:3002/students/1
Request:
- Method: PATCH
- URL:
http://localhost:3002/students/:id
- Example
http://localhost:3002/students/1
- Body:
{
"name": "new name",
"username": "new_username"
}
Request:
- Method: DELETE
- URL:
http://localhost:3002/students/:id
- Example
http://localhost:3002/students/1
Request:
- Method: POST
- URL:
http://localhost:3002/sprints
- Body:
{
"sprintName": "WD-1.1",
"sprintDescription": "Starting with python"
}
Request:
- Method: GET
- URL:
http://localhost:3002/sprints
Request:
- Method: GET
- URL:
http://localhost:3002/sprints/:id
- Example
http://localhost:3002/sprints/1
Request:
- Method: PATCH
- URL:
http://localhost:3002/sprints/:id
- Example
http://localhost:3002/sprints/1
- Body:
{
"sprintName": "new name here",
"sprintDescription": "new description here"
}
Request:
- Method: DELETE
- URL:
http://localhost:3002/sprint/:id
- Example
http://localhost:3002/sprint/1
Request:
- Method: POST
- URL:
http://localhost:3002/templates
- Body:
{
"text": "template text goes here"
}
Request:
- Method: GET
- URL:
http://localhost:3002/templates
Request:
- Method: GET
- URL:
http://localhost:3002/templates/:id
- Example
http://localhost:3002/students/1
Request:
- Method: PATCH
- URL:
http://localhost:3002/templates/:id
- Example
http://localhost:3002/templates/1
- Body:
{
"text": "new template text goes here"
}
Request:
- Method: DELETE
- URL:
http://localhost:3002/templates/:id
- Example
http://localhost:3002/templates/1
Request:
- Method: POST
- URL:
http://localhost:3002/messages
- Body:
{
"studentId": 1,
"sprintId": 1
}
Request:
- Method: GET
- URL:
http://localhost:3002/templates