Skip to content

engrafa/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

83e5faa · Apr 27, 2021

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backend

Development

Run the server in a development environment:

  • Make sure all requirements are installed or install them with:
pip install -r requirements.txt
  • Run the server in a developement environment:
python server.py

The default developement port is 8000.

Dockerized

Run the server in a docker container:

docker build . -t yaguide-backend
docker run -p 80:80 yaguide-backend

Production (without docker)

Run the server in a production environment:

  • Make sure all requirements are installed or install them with:
pip install -r requirements.txt
  • Run the server in a production environment with gunicorn:
gunicorn --bind 0.0.0.0:80 server:app