hakimamarullah / gotodo-api

Simple ToDos list REST API using Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoTodo REST API

Golang 101 Mini Project

Simple ToDos list REST API using Go

Features

  • Add Todo Item
  • Update Todo Item
  • Delete Todo Item
  • Batch Delete Todo Item
  • Get Todo Item By ID
  • Get All Todo Items

Authentication

  • 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.

How To Run?

  1. Clone the repository
git clone https://github.com/hakimamarullah/gotodo-api.git
  1. 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.

Next Development

  • [] Add due date field to TodoItem
  • [] Use environment variable for database credential, application's port, etc.

About

Simple ToDos list REST API using Go

License:GNU General Public License v3.0


Languages

Language:Go 98.7%Language:Dockerfile 1.3%