This repo contains an app for Altech recruitment test.
read stack.md
- Ensure you have migrate cli installed on your device
- Run development database. I provide docker compose file to easily running development
PostgreSQLserver.- Database name
bookies - Exported port
15432 - Default password
bookiesDBpass - Default user
postgres
- Database name
- Run migrations
migrate -source file://migrations -database postgres://{user}:{password}@{host}:{port}/{db_name} up - [OPTIONAL] You can run
sample-data.sqlto populate dev DB with sample data - Copy
sample.envto.envin root project and modify it as you need - Running app by
go run cmd/server/main.go