Skip to content

josemarluedke/api-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API

Api written in Golang.

Usage

Start the server:

gin run server.go

Migrations

We use go-pg/migrations to control our database migrations, such as creating, changing and dropping tables & fields.

There will be a table called gopg_migrations that saves all the executed migrations.

To setup the migrations table, execute:

go run db/migrations/*.go init

To run migrations, execute:

go run db/migrations/*.go up

To revert the last migration, execute:

go run db/migrations/*.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages