Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 682 Bytes

File metadata and controls

41 lines (28 loc) · 682 Bytes

Simple CRUD Interface

Rewrite the README according to the application.

The task itself can be found here

Prerequisites

Getting Started

  1. Start database
## Via Makefile
make db

## Via Docker
docker-compose up -d db
  1. Run migrations
## Via Makefile
make migrate-up

## Via Goose
DB_DRIVER=postgres
DB_STRING="host=localhost port=5432 user=postgres password=postgres dbname=postgres sslmode=disable"
goose -dir ./migrations $(DB_DRIVER) $(DB_STRING) up
  1. Run application
go run cmd/main.go