Skip to content
This repository has been archived by the owner. It is now read-only.

Latest commit

 

History

History
39 lines (26 loc) · 672 Bytes

dev.md

File metadata and controls

39 lines (26 loc) · 672 Bytes

Setup dev environment

API build on top of the Go, Postgres, Echo and sqlx. All infra tasks (start API, install deps, generater Swagger etc.) are managed by Task cli. To install it run the following command:

sudo ./scripts/install-task.sh

This command installs task to /user/local/bin/task so sudo is needed.

  1. Initiliaze .env file with development defaults by:
task init:env
  1. Install additional tools:
task install:tools
  1. Start database
task start:postgres
  1. Apply migrations
go run cmd/migrate/main.go
  1. Start dev server with autoreload
task dev