Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.42 KB

README.md

File metadata and controls

31 lines (26 loc) · 1.42 KB

Flask server

This server has API endpoints supporting the application. Here's how you run this component individually.

  1. cd to server and follow the below steps based on your OS:

    On Mac

    The first time you want to run this code, you will need to:

    1. Create a virtual environment: python3 -m venv venv
    2. Activate virtual environment:
      • On Mac or Linux: source venv/bin/activate
    3. Install dependencies into the virtual environment: pip3 install -r requirements.txt

    On all subsequent runs, you will need to:

    1. Activate virtual environment:
      • On Mac or Linux: source venv/bin/activate
    2. Run the development server:
      • On Mac or Linux: bash run_dev_server.sh

    On Windows

    The first time you want to run this code, you will need to: 3. Install Git Bash (if not already installed) and in VS code open the terminal of type Git Bash 4. Create a virtual environment: py -m venv venv 5. Activate virtual environment:

    • On Windows: source venv/Scripts/activate
    1. Install dependencies into the virtual environment: pip install -r requirements.txt

    On all subsequent runs, you will need to: 7. Activate virtual environment:

    • On Windows: source venv/Scripts/activate
    1. Run the development server:
      • On Windows: bash run_dev_server.sh