To run this exmaple, from the root of this project:
docker-compose up
curl -X GET "http://localhost:8000/"
curl -H "Content-Type: application/json" -d '{"original_url":"https://github.com/NeroCube"}' http://localhost:8000/urls
curl -X GET "http://localhost:8000/{tinyURL}"
glide update --all-dependencies --resolve-current
- Basic Restful API
- Dockerize project
- Add Redis cache makes access performance better
- Use PostgreSQL as long-term storage
- Hash URLs to make them shorter
- Go HTTP Redirect
- Unit test
- Package Management for Golang
- Refactor
- License