The purpose of this project is to learn the basics of typescript and apply this knowledge to node.js and express.
Due to that, currently other concepts like database and architecture are not important and therefore not implemented.
npm install
tsc -w
npm run dev- POST http://localhost:3000/todos/
- GET http://localhost:3000/todos/
- PATCH http://localhost:3000/todos/:id
- DELETE http://localhost:3000/todos/:id
Include the JSON in body request
{
"text" : "Add eslint support!"
}Example response
{
"message": "List of todos",
"data": [
{
"id": "0.6990519671278974",
"text": "Add eslint support!"
}
]
}Example response
{
"message": "Todo is updated",
"data": {
"id": "0.6990519671278974",
"text": "Add prettier support."
}
}Example response
{
"message": "Todo is deleted",
"data": {
"id": "0.6990519671278974",
"text": "Add prettier support."
}
}