Skip to content

Affairs-and-Order/AnO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Affairs-and-Order

Affairs & order is a nation simulation game, where you can make your own nation, build a military and industry, and declare war.

Repo installation.

  1. Install Git and add Git to PATH. https://stackoverflow.com/questions/26620312/installing-git-in-path-with-github-client-for-windows
  2. Type git clone https://github.com/delivey/AnO.git in the folder you want the repo to be cloned in.

Flask

  1. Install Python (Preferrably 3.8) https://www.python.org/downloads/release/python-380/.
  2. Run pip install -r requirements.txt, this will install all the modules needed for this repo.
  3. Type flask run in this repo's folder on your own PC.
  4. Navigate to http://127.0.0.1:5000/ or the url flask gave you in your browser. The website should run

PostgresQL

Windows

  1. Get the .exe installer from here: https://www.enterprisedb.com/downloads/postgres-postgresql-downloads. Download version 10.14
  2. Run the installer, remember your set settings.
  3. Set them in the .env file (if you haven't already rename .env.example to .env)
  4. Run the create_db.py file in AnO/affo to create your database instance.

Debian

  1. Follow this guide to setup Postgres
  2. Set Postgres variables in the .env file (if you haven't already rename .env.example to .env)
  3. Run the create_db.py file in AnO/affo to create your database instance.

No need for the ones below FOR DEVELOPMENT

RabbitMQ

Arch

  1. Install rabbitmq by typing pacman -S rabbitmq
  2. Follow this guide: https://docs.celeryproject.org/en/stable/getting-started/brokers/rabbitmq.html and name your username, password and vhost ano
  3. Run rabbitmq by typing: sudo rabbitmq-server

Debian

  1. 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
  2. Stop the rabbitmqctl service for naming usernames, vhosts, etc by typing: sudo rabbitmqctl stop
  3. Run the RabbitMQ broker by typing: sudo rabbitmq-server

Celery

IMPORTANT NOTE: open all your terminals using sudo -i, this will give root access to celery.

  1. Navigate into the AnO folder.
  2. Run the beat pool by running: celery -A app.celery beat --loglevel=INFO in the terminal.
  3. Run 1 worker by running: celery -A app.celery worker --loglevel=INFO in another terminal window.
  4. For celery to work, RabbitMQ must be running.

About

The official repository for Affairs & Order

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published