VITask is a dynamic API server for VTOP.
Python 3.2 or higher
1.Creating Virtual Environment and Installing Flask
- Open cmd
- Change current directory to VITask directory
- Run this
py -3 -m venv venv' or 'python3 -m venv venv
- To activate virtual environment, run this
venv\Scripts\activate
- Now install Flask using
pip install Flask
2.Installing Requirements.txt:
- Open cmd
- Go to VITask directory
- Run this
pip install -r requirements.txt
- Authorize Firebase by saving firebase.json in a suitable location and then executing
set GOOGLE_APPLICATION_CREDENTIALS=path_to_your_firebase.json\firebase.json
in cmd.
- Open cmd
- Change current directory to VITask folder
- Now run
py main.py
orpython main.py
orpython3 main.py
orpy3 main.py
- Open your Browser and then enter URL
http://localhost:5000/login
to enter your login details - Now Check the main.py for the @ap
6F56
p.route and then head over to the page you want to check for example if you want to check page xyz then it will have an app route as
@app.route('/xyz')
.Then use the URLhttp://localhost:5000/xyz