(Soon to be) Powering the Brighton Fighting Game Community
This branch (v3-dev) is the main development branch while we work on v3 of the API.
To find out more about the current (live) version v2, and the project as a whole, see the master branch. The v2 will no longer be updated while we work on v3, except for security or downtime patches.
v3 is a complete rework of the database model, and APIs, meaning it is currently incompatible with the current version of the frontend.
You need this installed:
You don't need these if using docker:
These are installed automatically if using docker:
Development mode can be handled using docker-compose using the service name hbk-api.
Start the service in the background:
$ docker-compose up -dThis spins up the app (service: hbk-api), a mongo database (service: hbk-mongo), and mongo-express (service: hbk-mongo-express), using the default parameters defined in docker-compose.yml
Access the logs using:
$ docker-compose logs -fFor running commands:
$ docker-compose run hbk-api <COMMAND>
# example:
$ docker-compose run hbk-api yarn testTo access the container shell:
$ docker-compose exec hbk-api /bin/shWhile using docker and docker-compose is preferable, you can still run this locally by populating environment variables into an .env file using the .env.example file as an example, installing dependencies using yarn, followed by (set -a && source .env && yarn dev) to run the development server. You'll need to have all the technologies installed and set up too.