This is the official web application for the Mellow Discord bot. It includes the home page, leaderboards, passport, profile, and server management features.
Warning
This project is not meant for your own use without significant modifications; breaking changes may occur.
To get started with this project, you'll need to have the following installed:
- Clone the repository:
git clone https://github.com/shi-gg/mellow-web- Install the dependencies:
bun install- Create a
.envfile: Create a.envfile in the root of the project and add the following environment variables:
# The base URL for the web application
NEXT_PUBLIC_BASE_URL="https://wamellow.com"
# The base URL for the backend API
NEXT_PUBLIC_API="https://api.wamellow.com/v1"
API_SECRET=""
# The API URL for the Plausible analytics service
PLAUSIBLE_API="https://analytics.wamellow.com/api"
# The domain and api key for the Plausible analytics service
PLAUSIBLE_DOMAIN="wamellow.com"
PLAUSIBLE_API_KEY=""
# The client ID and token for the Discord bot
NEXT_PUBLIC_CLIENT_ID="1116414956972290119"
DISCORD_TOKEN=""
# The public key for the Turnstile captcha service
NEXT_PUBLIC_TURNSTILE_KEY=""
# A personal GitHub access token with read:repositories scope
GITHUB_TOKEN=""
# The token for the top.gg API
TOPGG_TOKEN=""
# The public key for Bluesky
BLUESKY_PUBLIC_KEY=""
# The base64 encoded imprint data
IMPRINT_BASE64=""To start the development server, run the following command:
bun devThis will start the development server on http://localhost:3000.
To build and run the web application, use the following commands:
bun run build
bun startor
docker compose up --build -dContributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make your changes and commit them.
- Push your changes to your fork.
- Create a pull request.
If you need help with any of these steps, feel free to join our Discord server.