Prerequisites

  1. A Discord OAuth2 Application (from the Discord Developers Portal) with the Redirect URI set to http://<frontend url>/callback.

    <aside> ℹ️ Information needed from the application include CLIENT ID and CLIENT SECRET, which will be used later.

    </aside>

  2. A discord bot token from the developer portal.

  3. Either one of the two:

  4. A local copy of the git repository forms-backend.

Environment Variables

<aside> 💡 Create a .env file in the root with the following values inside it (each variable should be a line like VARIABLE=value):

</aside>

The following variables are required:

Set the following variables if running on the host (not on Docker):

Running with Docker

To start using the application, simply run docker-compose up in the repository root. You'll be able to access the application by visiting http://localhost:8000/