Skip to content

AutomatedProcessImprovement/kairos-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kairos Interface Web Server

build production_build

Start the web server locally (via locally installed Python)

Please, note that you need to have Python and MongoDB installed in order to follow the following steps. The installation instructions can be found here: https://wiki.python.org/moin/BeginnersGuide/Download and https://www.mongodb.com/docs/manual/installation/ respectively.

  1. Pre-requisite step: MongoDB is running.

  2. Create a new virtual environment

    python3 -m venv env
    
  3. Activate it

    source env/bin/activate
    
  4. Install all required modules listed in requirements.txt

    pip3 install -r requirements.txt
    
  5. The web server is now running and available here: http://localhost:5000.

Start the web server locally (via Docker)

Please, note that you need to have Docker installed in order to follow the following steps. The installation instructions can be found here: https://docs.docker.com/get-docker/

  1. Pre-requisite step: Docker is running. MongoDB is running.
  2. Build the image from the current code version in the repository.
    docker build-f Dockerfile -t kairos-api .
    
  3. Start the container
    docker run --rm -p 5000:5000 kairos-api
    
  4. The web server is now running and available here: http://localhost:5000.