bang/backend
Alberto Xamin 7f9e0bd964
work on replays
Co-authored-by: GM <giulio.migani@studenti.unitn.it>
2021-10-07 16:53:53 +03:00
..
.idea started working on frontend 2020-11-19 21:34:25 +01:00
bang work on replays 2021-10-07 16:53:53 +03:00
tests work on replays 2021-10-07 16:53:53 +03:00
__init__.py work on replays 2021-10-07 16:53:53 +03:00
conftest.py fix imports 2021-06-29 14:48:33 +02:00
Dockerfile add apt get install dependencies 2021-06-22 10:03:37 +02:00
Readme.md fix game not ending on sheriff death 2021-03-01 17:10:54 +01:00
requirements.txt Bump greenlet from 1.1.1 to 1.1.2 in /backend 2021-09-30 04:25:19 +00:00

Bang Backend

How to get started

Development

Create a virtual env

python3 -m venv PATHTOENV

activate the new environment

souce PATHTOENV/bin/activate

now with the current directory in the backend folder install the dependencies

pip install -r requirements.txt

then you can start the python file __init__.py, I recommend you use nodemon for that, as it will automatically reload the server on new changes. If you don't already have it, you can install nodemon with

npm i -g nodemon

then you will be able to start the server with

nodemon __init__.py