coding-test-cityscape
Introduction
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.
Technology
- Django 3.2
- Postgres
- Redis
- Nginx
- Locust
- Docker
Installation
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
Load Test
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
Future Work
- FrontEnd
- Load Balancer