This file contains instructions for contributors to set up the environment for developing various apps. If you are contributing to this repo. Please look at Contributing.md also for contributing Guidelines.
You can check the preqrequistes in the VITask Web/requirements.txt file. You require Python 3.2 or higher and make sure pip and python are added in PATH variable successfully before running.
1.Creating Virtual Environment and activating:
-
Open cmd
-
Change current directory to VITask Web. Using command
cd "VITask Web" -
Run this
py -3 -m venv venvorpython3 -m venv venvor if you havevirtualenvset up use commandvirtulalenv venv. -
To activate virtual environment, run this
venv\Scripts\activateor if you are using bash terminalsource venv/Scripts/activate -
Now install
requirements.txt
2.Installing from requirements.txt:
- Activate virtual environment as told above.
- Run this
pip install -r requirements.txt
3.Running app.py
- Activate virtual environment and then make sure you have completed above steps.
- Now run
py app.pyorpython app.pyorpython3 app.pyorpy3 app.py - Open your Browser and then enter URL
http://localhost:5000/loginto enter your login details - Now Check the
app.pyfor the@app.routeand then head over to the page you want to check for example if you want to check pagexyzthen it will have an app route as@app.route('/xyz').Then use the URLhttp://localhost:5000/xyz
For installing dependencies, make sure you are inside respective directories. Use command yarn install or npm install to install dependencies from package.json.
Right now we dont have iOS and MacOS support for the app. So, linking dependencies for iOS and Mac please review the installation of respective dependencies.
Note that after sometime the firebase.json file may not be valid and made private. This is done for privacy and preventing Database breach. If you want to contribute to Web Server and check please contact us