Skip to content

ELEVATE-Project/solution-upload-portal-service

Repository files navigation

template-validation-portal-service

Repository for backend service of Data upload and Validation tool

Code pushes to be done in the main branch only.

Requirements

  1. Python dependencies
  2. MongoDB data restore

Python dependencies

There are two ways to install python dependencies :-

  1. 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

  1. Virtual env and requirement.txt file :-
python -m venv env_name
source env_name/bin/activate
pip install -r requirements.txt

MongoDB data restore

Use following command to restore mongoDB dump :-

cd data
mongorestore --host localhost --port 27017 --db templateValidation --gzip ./

Execution

cd apiServices/src/main/
python app.py

Sample .env file

FLASK_APP = app.py FLASK_RUN_PORT = 5000 HOSTIP = "Add server ip Address" mongoURL = "Add server mongo url" db = templateValidation userCollection = users conditionsCollection = conditions validationsCollection = validation sampleTemplatesCollection = sampleTemplates #AUTH SECRET_KEY SECRET_KEY = "98bcbfb0f82aff815f17d5bfed66c1f4" admin-token = "16c6a8b5cbad36c887e74eed42454241"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages