URL Shortener written in Go
.envrc | ||
.gitignore | ||
atlas.hcl | ||
docker-compose.yaml | ||
flake.lock | ||
flake.nix | ||
go.mod | ||
justfile | ||
main.go | ||
openapi.yaml | ||
README.md | ||
sqlc.yaml |
short
URL Shortener written in Go.
Requirements
- go 1.21.6 or more
- Docker
- atlas
- sqlc
- just (optional)
Note
If you are using Nix, you can just run
nix develop .
ordirenv allow
if you use Direnv.
Dev dependencies
- ogen to generate OpenAPI server
Running the app
Once you have installed all requirements, you can simply do:
docker compose up -d
just migrate # or atlas migrate apply --env local
go run .