ToDo application using Golang, React, TypeScript
To run server
cd server
go run main.go
To run client
cd client
yarn dev
GET http://localhost:4000/healthcheck
POST http://localhost:4000/api/todos
with body
{
"title": "Testing",
"body": "Finish Tutorial"
}
Response:
[
{
"id": 1,
"title": "Testing",
"done": false,
"body": "Finish Tutorial"
}
]
PATCH http://localhost:4000/api/todos/:id/done
Response:
[
{
"id": 1,
"title": "Testing",
"done": true,
"body": "Finish Tutorial"
}
]
GET http://localhost:4000/api/todos
Response:
[
{
"id": 1,
"title": "Testing",
"done": false,
"body": "Finish Tutorial"
}
]