Welcome to the repository for the All Rated Extreme Demons List backend! This codebase uses Rust, the Actix web framework, the Diesel ORM, and a PostgreSQL database. Feel free to report bugs, suggest features and/or create pull requests!
For this guide you will need to install:
- a Rust toolchain
- Docker
- Postgres
- Git (if you don’t have it already)
After that, clone this repository onto your computer:
cd ./path/to/repo/
git clone https://github.com/All-Rated-Extreme-Demon-List/aredl-backend-v2.git
cd ./aredl-backend-v2/Next, create a Discord Developer application, and go into the OAuth page on the left. Under “Redirects” set the URI to http://127.0.0.1:5000/api/auth/discord/callback.
Next, duplicate the .env.example file in the project’s root, rename it to .env, and fill out all the variables inside. Some values are already filled in for you, and you usually don’t need to change them. If you change the API host or port, remember to also change the Redirect URI for your Discord Developer application to match it.
The production environment uses Docker to host the API and database, so it’s suggested that you do too. To start the Docker containers, run…
docker compose up --build…in the project root.
If everything is setup correctly, the server should startup and be available at http://127.0.0.1:5000!