-
Make sure you are in the project root directory
-
Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activate
- Install the required dependencies:
pip install -r requirements.txt
- Start the Flask server:
python app.py
The server will be live on: http://localhost:8080/
Example calls:
Note
POST requests like checkout
, reset
, and return
might not work on browsers, since the browser treats them as GET
requests.
http://localhost:8080/checkout?borrowerId=L34&bookId=A312
http://localhost:8080/return?borrowerId=L34&bookId=A312
Make sure you have MongoDB installed and running on your local machine.