This project contains a single post api request for room booking which takes four fields(booking_date, status, first_name, last_name, email) and give response either 'Successfully Booked' or 'Already Booked' according to on that day's room status. Please check the Postman
collection for POST form data structure.
- Django 3.2
- Postgres
- Redis
- Nginx
- Locust
- Docker
- Clone this repo and enter inside
- Run
docker-compose up --build
- Server will be on http://127.0.0.1:1337
- Import the
Postman
collection which contains a single post api request for room booking
Inside the loadTest
directory locustfile
is located.
- Run
pip install locust
- Start the docker containers
- Go inside
loadTest
- Run
locust --host=http://localhost:1337
- Open Browser and go to http://localhost:8089
- FrontEnd
- Load Balancer