This is one of a series of projects (I hope) for experimenting some go libraries.
For this one, I'll use Gin to build a simple web application and jackc/pgx to integrate with a PostgreSQL database
# Clone me!
git clone https://github.com/luanapp/using-gin
# Update dependencies
make install
# Run!
make run
There are some database migrations to create the database structure.
Create the database container (docker):
make run-db
Just run:
make migrate-up
To undo the migrations, run:
make migrate-down
Happy coding!