Affairs & order is a nation simulation game, where you can make your own nation, build a military and industry, and declare war.
- Install Git and add Git to PATH. https://stackoverflow.com/questions/26620312/installing-git-in-path-with-github-client-for-windows
- Type
git clone https://github.com/delivey/AnO.git
in the folder you want the repo to be cloned in.
- Install Python (Preferrably 3.8) https://www.python.org/downloads/release/python-380/.
- Run
pip install -r requirements.txt
, this will install all the modules needed for this repo. - Type
flask run
in this repo's folder on your own PC. - Navigate to
http://127.0.0.1:5000/
or the url flask gave you in your browser. The website should run
- Get the
.exe
installer from here:https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
. Download version 10.14 - Run the installer, remember your set settings.
- Set them in the .env file (if you haven't already rename .env.example to .env)
- Run the
create_db.py
file in AnO/affo to create your database instance.
- Follow this guide to setup Postgres
- Set Postgres variables in the .env file (if you haven't already rename .env.example to .env)
- Run the
create_db.py
file in AnO/affo to create your database instance.
- Install rabbitmq by typing
pacman -S rabbitmq
- Follow this guide: https://docs.celeryproject.org/en/stable/getting-started/brokers/rabbitmq.html and name your username, password and vhost
ano
- Run rabbitmq by typing:
sudo rabbitmq-server
- Follow this guide to install RabbitMQ: https://www.vultr.com/docs/how-to-install-rabbitmq-on-ubuntu-16-04-47 and name your username, password and vhost
ano
- Stop the rabbitmqctl service for naming usernames, vhosts, etc by typing:
sudo rabbitmqctl stop
- Run the RabbitMQ broker by typing:
sudo rabbitmq-server
- Navigate into the
AnO
folder. - Run the beat pool by running:
celery -A app.celery beat --loglevel=INFO
in the terminal. - Run 1 worker by running:
celery -A app.celery worker --loglevel=INFO
in another terminal window. - For
celery
to work, RabbitMQ must be running.