A site to track a game of Assassins for Avery House at Caltech!
Assassins is a long-term game where teams of players get targets to "assassinate" while avoiding being assassinated themselves.
Frontend: React.js, backend: Django.
Make sure you have npm version 5+, Python 3, and pip installed.
Run
pip install pipenv, pipenv shell, and pipenv install.
In frontend, run npm install.
To compile the frontend, use npm run dev in frontend.
To launch the site on localhost:8000, run pipenv shell and python manage.py runserver.
Testing Facebook integration requires a secure web URL for the Assassery Messenger bot. You can use Ngrok and pass the url (<url>/messenger/api)
to the Assassery bot.
API keys and such are stored in a file called vars.py at the top level of the project. It is not in the repository: contact me personally if you need them.
- Make leaderboard use kill-death ratio or kills - deaths instead of ordered ranking
- Make git pull leave the database unaffected
- Add lines between rounds in kill feed
- Fix text size for kill confirm modal on mobile
- Add tool to unconfirm a kill in admin
- Add "active" checkbox for kills instead of deleting them
- Update rules
Make sure your user is added to group sudo usermod -a -G assassery $USER (MAKE SURE TO LOGIN AND LOGOUT)
For git pulling & other things: sudo chown -R www-data:assassery Assassery then sudo su www-data -s /bin/bash
- SSH into your account, then
cd srv/assasserythensudo su(just for running, I don't feel like dealing with permissions) - Run
source venv/bin/activate - Now,
cd Assasseryand start a tmux session, so runtmuxright after - Now in the
tmuxsession, split horizontally (Ctrl+B + %) and runcd frontend && npm run devin the first panepython3 manage.py runserver 127.0.0.1:3000in the second pane
- Now detach from tmux (Ctrl+B + D) and exit the server
If it's already running, reattch using: tmux attach (since that should be the only one on the server)