MyShortURL is a simple, efficient Short URL generator built using Gin framework and Redis. This project allows you to set up a robust URL shortening service easily using Docker, suitable for both development and production environments.
- Quick Setup: Get up and running with just a few commands.
- High Performance: Leverages the fast Gin framework and Redis caching for optimal performance.
- Docker Integration: Fully containerized for easy deployment and scaling.
- Docker and Docker Compose
- Redis server (included in the docker-compose file)
docker-compose up
POST /api/v1/shorten
You can create a new short URL by sending a POST request to this endpoint. Include the original URL in the body of your request.
- Endpoint:
localhost:3000/api/v1/shorten - Method: POST
- Body:
{ "url": "https://example.com" }
Contributions are welcome! Please refer to our contributing guidelines for more information on how to participate in the project.