Implement a simple Django rate limiter without third-party libraries. This project restricts requests per minute by client IP, preventing abuse and ensuring fair resource usage. Dockerized for easy deployment.
-
Clone the repository:
git clone https://github.com/gillianomenezes/rate-limiter.git cd django-rate-limiter
-
Build the Docker image:
docker build -t django-rate-limiter .
-
Run the Docker container:
docker run -p 8000:8000 django-rate-limiter
-
Access the example view:
Open your web browser and go to http://localhost:8000/rate/
rate_limiter/
: Django project folder.rate/
: Django app folder containing the rate limiter implementation.Dockerfile
: Configuration for building the Docker image.docker-compose.yml
: Docker Compose configuration for easier deployment.requirements.txt
: Project dependencies.
Contributions are welcome! Please follow our Contribution Guidelines to get started.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or feedback, feel free to reach out to me:
Enjoy coding!