Skip to content

UnilabEdu/QartNLPWebService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QartNLP - Web Service


Unilab Python Flask
contributors commits

Branch Structure

main branches: deploy | development

temporary branches: front | back [ from development]

  • deploy - stable branch
  • development - working branch
  • front - workspace for front-end division
  • back - workspace for back-end division

pull request

All the pull requests are sent to your division branch.
When creating new branch, always use the structure of the branch anatomy.

branch anatomy: division/type/title

divisions: front | back

division branch is synced to the development branch once a week.

Setup & Run

To make the project run on your device you need have Python 3.x installed.

virtualenv

It's highly recommended to use virtual environments while working on the project. To set up the environment we will be using venv module.

set up

Setting up virtual environment is a one time process. To set up the environment use the following command:

python -m venv env

It will create the virtual environment in your computer named env at the env directory.

activate

Before you can start installing or using packages in your virtual environment you’ll need to activate it On macOS and Linux:

source env/bin/activate

On Windows:

.\env\Scripts\activate

deactivate

If you want to switch projects or otherwise leave your virtual environment, simply run:

deactivate

Installing the Requirements

Project is built using Python web framework - Flask. Flask and all the other dependency modules can be installed from the commandline using pip manager:

pip install -r requirements.txt

Run

activate the environment and run the following command:

python app.py

used modules