This is a collection of projects used to power the super fun game called hackers revenge. You need both of these to run and you'll need to piece the apps together but there are enough breadcrumbs to make this happen.
LICENSE MIT
Working to make this easier.
- Run
make initialize
to copy default sample configuration - Run
make server
to build the server docker container - Run
make ui
to build the frontend nginx docker container - Run
make build
to do initial migration for server - Run
docker compose up
to run the server, ui, and sidekiq - Run
chown $USER:$USER hackers-revenge-server/db/development.sqlite3
- Go to
localhost:8080/mx/token
and click the generate token (username: beta, password: yolo) <--- these are set in the hackers-revenge-ui/auth.conf - Connect to the
hackers-revenge-server/db/development.sqlite3
database using dbeaver or cli - Run
SELECT * FROM players;
to see theid
of the token/player you generated - RUN
UPDATE players set email = '[email protected]' where token = '{token}';
// email is a required field (for now) - Go to
localhost:8080/mxmax
to the instructions page - Input your token, create/submit your program.
- Go to
localhost:8080/mx/replay
to see random battles of programs