Simple ToDos list REST API using Go
- Add Todo Item
- Update Todo Item
- Delete Todo Item
- Batch Delete Todo Item
- Get Todo Item By ID
- Get All Todo Items
- JWT token based authentication and authorization. The token stored in
Cookie
. - User email stored in request context. So, the handler function can access the current user email through the request context.
- Clone the repository
git clone https://github.com/hakimamarullah/gotodo-api.git
- Run using Go >= v1.20
cd gotodo-api
go run main.go
Note: You can also run this app using Docker by building the image using the Dockerfile which has been provided in the reposisory.
- [] Add due date field to TodoItem
- [] Use environment variable for database credential, application's port, etc.