First, you need to clone this repository:
$ git clone https://gitlab.com/has-abi/flask-cicd.git
Then change into the flask-cicd
folder:
$ cd flask-cicd
Now install pipenv with pip
$ pip install pipenv
Now, we will need to create a virtual environment and install all the dependencies:
$ pipenv shell
$ pipenv install
Before run the application, make sure you have activated the virtual enviroment.
Activate the virtual enviroment
$ pipenv shell
To start the application browse to project root where manage.py is
$ python3 manage.py run
$ python manage.py test
$ python manage.py cov
- GET (
/process?text=your_text
): Simple GET endpoint to process text.