To run it in Docker:
-
docker build -t xdronedsl/backend .
-
docker run -it xdronedsl/backend
To run it without Docker:
-
Make sure you're using python 3 If
pip --version
mentions python 2, then usepip3
instead ofpip
andpython3
instead ofpython
in the commands below.{Tip: Add
alias python=python3
andalias pip=pip3
in~/.bashrc
, and runsource ~/.bashrc
OSX:
source ~/.bashrc
will (probably) not be run after rebooting, so addsource ~/.bashrc
to~/.profile
(Source: http://archive.is/Q0EUC) } -
Install pipenv
pip install --user pipenv
-
Enter the pipenv environment In this directory run:
pipenv shell
(If this doesnt work, try: sudo apt install pipenv
or brew install pipenv
first, and then try again)
-
Install the env dependencies
pipenv install --dev
-
To run the server run
python server.py