-
Clone this repository
git clone https://github.com/swayam25/Aero aero cd aero -
Install dependencies
pnpm i
-
Create an application at the Discord Developer Portal.

-
Create
.envfile from.env.examplein the root directory and fill in the required values.ENV Vars
- Get
DATABASE_URLfrom Supabase. Click on the
button at the top bar.

- Get
VITE_SUPABASE_URLandVITE_SUPABASE_KEYfrom Supabase API Settings.

- Get
JWT_SECRETby running the following command.pnpm run gen-secret
- Get
DISCORD_CLIENT_IDandDISCORD_CLIENT_SECRETfrom the Discord Developer Portal.
- Get
DISCORD_BOT_TOKENfrom the Discord Developer Portal.
- Get
SPOTIFY_CLIENT_IDandSPOTIFY_CLIENT_SECRETfrom the Spotify Developer Dashboard. - Set
YOUTUBE_DL_PATHto the path ofyoutube-dloryt-dlpexecutable. You can install it from GitHub Releases (yt-dlp) or use a package manager. - Set
DOMAINto your domain name orhttps://localhostfor local development. The variable is required for production.DOMAIN="https://your-domain.com"
- Get
-
Push the database schema to Supabase.
pnpm run db:push
-
Navigate to Table Editor in Supabase Dashboard and enable RLS for all the tables.
-
Navigate to Authentication > Policies in Supabase Dashboard and create policies for all the tables.

-
Navigate to Table Editor in Supabase Dashboard and enable Realtime for
playlist,room&room_membertable.
Note
Check the Supabase Docs for more information on enabling Realtime.
- Start the app
pnpm run dev
-
Follow steps 1-10 from the installation section.
-
Change
DOMAINin.envfile to your domain name.DOMAIN="https://your-domain.com"
Important
DOMAIN is the URL you will use to access the app.
This dynamically sets ORIGIN during node build and configure the Caddy server's domain (for the reverse proxy).
For local development, you can set it to https://localhost.
Ensure this matches the Redirect URL in the Discord Developer Portal (see step 5 in the installation section).
Check the SvelteKit Docs for more information about the ORIGIN variable.
- Run docker container (via
docker compose)docker compose up -d
-
Things to keep in mind
- Follow our commit message convention.
- Write meaningful commit messages.
- Keep the code clean and readable.
- Make sure the app is working as expected.
-
Code Formatting
- Run
pnpm run formatbefore committing your changes or usePrettierextension in your code editor. - Make sure to commit error free code. Run
pnpm run checkto check for any errors.
- Run
-
Check STYLES.MD for the CSS style guide.






