/using-gin

Golang project to test Gin and jackc/pgx libraries

Primary LanguageGoApache License 2.0Apache-2.0

Go Report Card

Golang projects - Using Gin

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

Run the project

# Clone me!
git clone https://github.com/luanapp/using-gin

# Update dependencies
make install

# Run!
make run

Run database migrations

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!