modulepackage
0.0.0-20231208224255-d85c9efed59e
Repository: https://github.com/gabriell915/api-rest-go.git
Documentation: pkg.go.dev
# README
Require
- Docker and Go
- golang-migrate/migrate
Uso
Clone the repository with:
git clone https://github.com/GabrielL915/Api-Rest-Go.git
criar env no bash
$ cp .env.example .env
Build e start do projeto:
$ docker-compose up --build
migrar banco de dados no bash(trocar $PG_USER, $PG_PASS, $PG_DB por valor da .env):
$ export POSTGRESQL_URL="postgres://$PG_USER:$PG_PASS@localhost:5432/$PG_DB?sslmode=disable"
$ migrate -database ${POSTGRESQL_URL} -path db/migrations up
# Functions
No description provided by the author