This is a simple Todo API written in Golang. It uses a simple postgres database to store the todos.
- Golang 1.22 >=
- Docker
- Air
- Docker
- Linux or MacOS
Install the required dependencies using the following command:
make install_deps
To run the API, you need to have a postgres database running. You can use the following command to run a postgres database using docker:
make up_db
This will start a postgres database on port 5432. You can then run the API using the following command:
air
This will start the API on port 8080.