This is the API for the short-me project. It is a simple URL shortener.
- Install docker and docker-compose
- Copy
.env.example
to.env
and fill the variables - Run
docker-compose up -d
- Run
air
to start the server with hot reloading - The API will be available at
localhost:4682
utils
already has functions implemented for generating a random string of any length and validating incoming dtos- There already is a DTO for the
ShortLink
model indtos/links.go