Simple API using Golang, Postgresql and jwt for authentication
-
Requirements
- Install Docker Engine
- Install docker-compose
-
Git clone repository
git clone https://github.com/qanghaa/togo.git
-
Go to togo📂 directory
-
Using
docker-compose
commands with root permission# this command make sure next command working as expected sudo docker-compose down --volumes .
sudo docker-compose up
API Document: here
Note: Using Bearer Authorization Header for endpoints required
- Go to togo📂 directory
- type in cmd:
go test ./...
Overall, nothing outstanding. However I quite like the payment feature. Although the implementation is simple, it will help the user become a Premium user LOL. This feature helps users to overcome the limit of creating tasks in 1 day (20 tasks/day) instead òf 10 as usual. Not related to feature, probably Docker, I spent 2 days learning and trying to work on it and I was able to use it in this project :D.
Probably Testing. I haven't writed unit test enough possible scenarios with my API yet.