Please, note that you need to have
PythonandMongoDBinstalled 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.
-
Pre-requisite step: MongoDB is running.
-
Create a new virtual environment
python3 -m venv env -
Activate it
source env/bin/activate -
Install all required modules listed in requirements.txt
pip3 install -r requirements.txt -
The web server is now running and available here: http://localhost:5000.
Please, note that you need to have
Dockerinstalled in order to follow the following steps. The installation instructions can be found here: https://docs.docker.com/get-docker/
- Pre-requisite step: Docker is running. MongoDB is running.
- Build the image from the current code version in the repository.
docker build-f Dockerfile -t kairos-api . - Start the container
docker run --rm -p 5000:5000 kairos-api - The web server is now running and available here: http://localhost:5000.