Repository for backend service of Data upload and Validation tool
Code pushes to be done in the dev
branch only.
- Python dependencies
- MongoDB data restore
There are two ways to install python dependencies :-
- Conda and environment.yml file (recommended):-
conda env create -f environment.yml
conda activate templateValidation
Note :- Please refer to below link for installing conda in ubuntu
https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html
- Virtual env and requirement.txt file :-
python -m venv env_name
source env_name/bin/activate
pip install -r requirements.txt
Use following command to restore mongoDB dump :-
cd data
mongorestore --host localhost --port 27017 --db templateValidation --gzip ./
cd apiServices/src/main/
python app.py