The motivation behind this project is to learn more about system design and how to build a scalable system. The book system design interview is a great resource to learn about system design and this project is based on the case study of building a url shortener.
- Docker
- Docker Compose
- Golang
- Clone the repository
- Run
docker-compose up
to start the redis server - Run
go run main.go
to start the server - Run
go test ./...
to run the tests
Request body:
{
"url": "https://www.google.com"
}
Response body:
{
"shortened_url": "http://localhost:8080/1"
}
Response body:
{
"url": "https://www.google.com"
}