-
Copy file
.env.example
and rename to.env
-
Update env vars to fit your local
-
Start local services
make db
-
Run the migration
make migrate
-
Create admin account
make seed
-
Run the server
make run
-
Run the thumbnail service
make thumbnail
-
Unit test
make test
make lint
sql-migrate new -env="development" create-users-table
- Result:
Created migration migrations/20230908204301-create-users-table.sql
-
Access to
{host}/swagger/index.html
-
Install swag CLI
go install github.com/swaggo/swag/cmd/swag@latest
- Generate swagger docs
make swagger