Requip is a buy and sell ecommerce website for the people of Indian Institute of Technology Jammu. Requip website is powered by Requip Backend APIs.
Access to the Requip API is granted by JWT access token. To get access token you have to provide your username and password. The username and password used, is the same username and password you use to access the Recuip web or app interface. See User APIs for authentication API
- Python 3.7
- Flask framework
- Running on: Azure app service
- Media Server: Azure Blob Storage
- Database : MongoDB
- Deployment : Github Actions
- Install Python.
- Clone this repository and open terminal, change directory to the repo.
- Run
python -m venv venv
to create virtual environment. - Run
venv\Scripts\activate
command to activate virtual environment. - Run
pip install -r reqirements.txt
command to install dependencies. - Create a .env file in the folder, containing
MONGODB_URI = <token>
STORAGE = <azure_storage_token>
SENDGRID_API_KEY = <sendgrid_token>
FRONTEND = <frontend_location>
AZURE_COMPUTER_VISION = <Azure computer vision endpoint and key seperated by ; >
- Create System Var
$env:FLASK_APP="application.py"
,$env:FLASK_DEBUG=1
using terminal. - Enter
flask run
to create server. - Push the changes in a separate branch and create a pull request. After the PR is merged, it will be automatically deployed to Azure App Service via Github Actions.