Node.js
Typescript
Express
JSON Web Token (JWT)
Bcrypt
Sqlite
Vitest
Cors
Zod
# clone project
$ git clone https://github.com/EmanuelQuintino/Task-Manager-WDC-API.git
# install dependencies
$ npm install
# run api
$ npm run dev
PORT=""
SECRET_TOKEN=""
EXPIRESIN_TOKEN=""
KEY_TOKEN=""
Functionality | Method | Endpoint | Description |
---|---|---|---|
Auth | POST |
/login | Start the user session |
POST |
/logout | Close the user session | |
User | GET |
/user | Return user informations |
POST |
/user | Create a new user | |
Tasks | POST |
/task | Add a new task |
GET |
/tasks | Return *pagination tasks | |
PUT |
/task/:id | Update an existing task | |
DELETE |
/task/:id | Remove an existing task |
*Pagination parameters:
limit:
Number of items per page.offset:
Offset index.filter:
Filter options"all"
,"completed"
,"pending"
,"late"
.
Query example:
/tasks?limit=10&offset=0&filter=all
- email: user@test.com
- password: A!1234567