mensatt / backend

The backend repository for Mensatt
MIT License
5 stars 2 forks source link

Mensatt Backend

Build & Test Development Deployment

The backend repository for Mensatt written in go.

Requirements

Building

Running

Migrations

Migrations require Atlas to be installed. See here for installation instructions.

Create a new migration:

atlas migrate diff <migration_name> \
 --dir "file://internal/database/migrations" \
 --to "ent://internal/database/schema" \
 --dev-url "postgres://mensatt:mensatt@localhost:5432/mensatt?search_path=public&sslmode=disable" \
 --format '{{ sql . "   " }}'

The --format flag uses a tab as indentation. If you want to manually edit this command you can use ctrl + v + tab to insert a tab character in your shell.