Skip to content

Flask setup

Amit Mandliya edited this page Oct 25, 2020 · 1 revision

(To do after resolving issue #16)

Flask

Please ensure that python3 is already installed in the system.

Set up Flask in order to use the python script as an api from NodeJS. Follow the steps in order to achieve this.
Go to the root of the repository and run 'cd api'.

Set up a virtual environment.
For Unix-based systems, run
$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ _

For Windows based systems, run
$ python -m venv venv
$ source venv/Scripts/activate
(venv) $ _

Install flask and dotenv packages for python.
$ pip install flask python-dotenv

Now, run the Flask server
(venv) $ flask run

The api is now active on http://127.0.0.1:5000/

Wiki

One-click set up with Docker

Project Workflow

Website Implementation

Database Implementation

Algorithm Implementation

Mock Data

Document Dictionary

Clone this wiki locally