This is a work-in-progress community page around the Alveus Sanctuary twitch stream and related content. The page is currently hosted at https://www.alveus.gg/.
Main ideas:
- Content focused hub for viewers (new and old) independent of the platforms (twitch/youtube/instagram), while the official website can be the official presentation of the Sanctuary not only towards viewer but also industry and other interested parties.
- Possible Features:
- Notifications for on-stream and off-stream content (stream segment changes, video releases, ig posts). #1
- Let viewers explore alveus online with content about the ambassadors and facilities, structuring and linking existing content.
- Schedule of planned content and events.
- Could be a platform for user-interactions with the Sanctuary like feeding ambassadors for donations etc.
- Could be a backend for other applications like the twitch extension.
- Alveus Sanctuary (official website): https://alveussanctuary.org/
- Twitch extension: https://github.com/abdullahmorrison/AlveusTwitchExtension
This project uses pnpm workspaces. The main app is the website package, see https://github.com/alveusgg/alveusgg/blob/main/apps/website/README.md
For a more complete overview see: #9
TODO
TODO
- Create a Twitch application, setting the OAuth callback to be
http://localhost:3000/api/auth/callback/twitch. Note down your client ID and client secret. - Optional: Obtain Open Weathermap and Cookiebot keys if you want those
- Install Node.js v16 and pnpm
- Install dependencies:
pnpm install - Create a Planetscale account (free) or provide your own MySQL server, that should give you two DSN for the main and shadow database (something like
mysql://user:pass@us-east.connect.psdb.cloud/alveusgg?sslaccept=strict) - Copy
apps/website/.env.exampletoapps/website/.env- Fill the Prisma section with the database info (DSN)
- The vapid keys for web notifications have to be generated using
npx web-push generate-vapid-keys - Next Auth secrets, Twitch EventSub API secrets and Action API secrets have to generated using
openssl rand -base64 32 - You may define privileged user once they have signed in via the
SUPER_USER_IDSvariable
- Push the database schema to the new database using
npx prisma db pushfrom withinapps/website. - Start the dev server:
pnpm run -r dev - The website should be running at
http://localhost:3000/(open in browser)
- Also see T3 Stack
- Use
npx prisma studioto view your database
The stack should work on any Node.js server or Next.js capable hoster and any MySQL server, but is only tested on Vercel (and Planetscale) for now.
- Create a twitch extension (see Getting started above)
- Set up a database (see Getting started above)
- Go through the
apps/website/.env.exampleand create your ownapps/website/.env.production(see Getting started above) - Push the database schema to the new database using
npx prisma db push. - Get your own domain (optional)
- Create a vercel account
- Create a new vercel project with these settings:
- General:
- Framework Preset:
Next.js, leave the other build/dev settings on the default option - Root directory:
apps/website - Node.js Version:
16.x
- Framework Preset:
- Domains: add your domains
- Git: connect your git repo
- Environment Variables: Copy paste your
apps/website/.env.productioninto the first Key field (yes you can simply copy-paste everything at once)
- General:
TODO