···10101111If you need help developing with this, join **[our Discord Server](https://discord.com/invite/yYd6YKHQZH)**.
12121313+Note that this project is not meant to be used by anyone else, including other bots, as it is specifically designed for our bot and the backend API stays private. We will not provide support for this project if you use it for your own bot, though you are allowed to by the license.
1414+1315## Setup
1416Clone this repo with the following commands:
1517···19212022Create a `.env` file and add the following values:
2123```env
2424+# Register a https://www.geetest.com/en/ account, this is used for
2225NEXT_PUBLIC_CAPTCHA_ID=""
2323-NEXT_PUBLIC_API="https://api.local.wamellow.com/v1"
2626+2727+# The API URL, this is the base URL for the backend
2828+NEXT_PUBLIC_API="https://api.wamellow.com/v1"
2929+API_SECRET=""
3030+3131+# The Nekostic API URL, https://github.com/Luna-devv/nekostic
2432NEXT_PUBLIC_NEKOSTIC="https://nekostic.wamellow.com/statistics"
2525-NEXT_PUBLIC_LOGIN="https://discord.com/oauth2/authorize?client_id=1116414956972290119&redirect_uri=https://local.wamellow.com/login&response_type=code&permissions=1426738113654&prompt=none&scope=identify+email+guilds"
2626-NEXT_PUBLIC_BASE_URL="https://local.wamellow.com"
27332828-API_SECRET="a"
3434+# The base URL for the website, this is used for the meta tags and other things
3535+NEXT_PUBLIC_BASE_URL="https://wamellow.com"
29363737+# https://plausible.com analytics
3038PLAUSIBLE_API="https://analytics.wamellow.com/api"
3139PLAUSIBLE_DOMAIN="wamellow.com"
3240PLAUSIBLE_API_KEY=""
33413434-RATINGS_API="http://100.65.0.1:5002"
4242+# The base URL for the ratings API
4343+RATINGS_API="http://localhost:5002"
4444+4545+# The Discord client ID and bot token
3546CLIENT_ID="1125449347451068437"
4747+DISCORD_TOKEN=""
36483737-DISCORD_TOKEN=""
4949+# A personal GitHub access token (read repositories)
5050+GITHUB_TOKEN=""
3851```
3939-For the `NEXT_PUBLIC_CAPTCHA_ID` register a https://www.geetest.com/en/ account, this is used for /passport's.
4040-For the `API_SECRET` hack my computer to get access to the backend API and it's secrets. (dun't duh)
4141-For the `PLAUSIBE_*` stuff you have to either create or selfhost https://plausible.com/
4242-For the `RATINGS_API` enter a ip/domain to a ratings api duh, read the typings for a structure.
4343-For the `CLIENT_ID` enter your Discord client id.
4444-For the `DISCORD_TOKEN` go on repl.it and find a random repo that leaks the token and use it.
45524646-## Deploy
4747-The bun package manager is cool, the runtime sucks imo tho, you can also use pnpm.
5353+## Developing
5454+This project uses pnpm with nodejs, to start developing, run:
48554949-To run the develoment server run
5056```bash
5151-bun dev
5757+pnpm install
5858+pnpm dev
5259```
53606161+If you work on this project, please note that nextui is being phased out in favor of shadcn/ui, so please use the latter for new components.
6262+6363+## Deploy
5464To build and run the website use
5565```bash
5656-bun build
5757-bun start
6666+pnpm build
6767+pnpm start
6868+```
6969+or
7070+```bash
7171+docker build -t mw-web .
7272+docker compose up -d
5873```