End to end application for spaceship rental management using Flask
- Clone this repository in your local machine.
- Change the directory
sooryakant@ideapad-5-pro:~/Documents$ cd qube-rt/
- Create a new virtual environment-
python -m venv env
- Activate the new virtual environment-
sooryakant@ideapad-5-pro:~/Documents/qube-rt$ source env/bin/activate
- Upgrade the python version if it is not 3.10
- For Window follow this- https://linuxhint.com/update-python-windows/
- For Ubuntu follow this- https://cloudbytes.dev/snippets/upgrade-python-to-latest-version-on-ubuntu-linux
- Install the requirements-
(env) sooryakant@ideapad-5-pro:~/Documents/qube-rt$ pip install -r requirements.txt
- Run the app-
(env) sooryakant@ideapad-5-pro:~/Documents/qube-rt$ python app.py
- Open the URL in your favorite browser-
http://127.0.0.1:8080/
- Send the below data points as a input-
{
"data": [
{
"name": "Contract1",
"start": 0,
"duration": 5,
"price": 10
},
{
"name": "Contract2",
"start": 3,
"duration": 7,
"price": 14
},
{
"name": "Contract3",
"start": 5,
"duration": 9,
"price": 8
},
{
"name": "Contract4",
"start": 5,
"duration": 9,
"price": 7
}
]
}
Submit the data and get the response.