Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.11 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.11 KB

LisTent Application

Backend setup

First of all, move to the backend folder with cd backend command

Setup Virtual Environment and Manage Dependencies

Make sure virtualenv is installed

pip install virtualenv

Create virtual environment named venv.

python3 -m venv venv

A venv should be created with the following structure:

venv
├── bin
├── include
├── lib
│   └── python3.6
│       └── site-packages
│           ├── easy_install.py
│           ├── pip

Activate virtual environment

source venv/bin/activate

Install all dependencies in requirements.txt

pip3 install wheel
pip3 install -r requirements.txt

Run the Flask API Application

The application can be run from the root main.py.

python3 main.py

Open browser and visit http://localhost:5000/api/v1 to see the Swagger UI of the API.

Frontend setup

  1. Install nodejs.
  2. cd to client folder and run npm install.
  3. Start the frontend with npm run start. Frontend should be running at localhost:3000.