docs: change some things

This commit is contained in:
2026-01-27 17:02:47 +01:00
parent 5add3b0e5d
commit 5b6addac9a
2 changed files with 9 additions and 41 deletions

View File

@@ -9,43 +9,7 @@ description: Instructions to set up a local development environment for hackclub
4. `pnpm dev`
5. `pnpm db:migrate` (RUN THIS AFTER POPULATING ENV)
- create file at apps/web/.env (skip if you did step 3):
```
DATABASE_URL=postgresql://postgres:skbiditoilet@localhost:5555/postgres
# make a slack app here: https://api.slack.com/apps
SLACK_NOTIFIER_TOKEN=<make a bot for this, check app manifest below>
# invite your bot to the channel you created. below is #hctv-dev, so use that if you want!
NOTIFICATION_CHANNEL_ID=C08M3MGE6PJ
REDIS_URL=redis://localhost:6379
# get from https://uploadthing.com/
UPLOADTHING_TOKEN=<get from uploadthing>
# enable oauth mode on your hca account and make an app: https://auth.hackclub.com/identity/edit
HCID_CLIENT=<auth.hackclub.com client>
HCID_SECRET=<auth.hackclub.com secret>
# make sure to put this as one of the redirect uri
HCID_REDIRECT_URI=http://localhost:3000/auth/hackclub/callback
# mediamtx settings
NEXT_PUBLIC_MEDIAMTX_URL=http://localhost:8891
MEDIAMTX_API=http://localhost:9997
# idt you should change this
MEDIAMTX_PUBLISH_KEY=rjq1xdpCPA4qyt3jge
NEXT_PUBLIC_MEDIAMTX_INGEST_ROUTE=localhost:8890
```
- create file at packages/db/.env (skip if you did step 3):
```
DATABASE_URL=postgresql://postgres:skbiditoilet@localhost:5555/postgres
DATABASE_DIRECT_URL=postgresql://postgres:skbiditoilet@localhost:5555/postgres
```
- app manifest is as follows:
- slack notifier app manifest is as follows:
```
display_information:
# please change the name to something that can be linked to you if possible

View File

@@ -18,9 +18,13 @@ HCID_SECRET=<auth.hackclub.com secret>
HCID_REDIRECT_URI=http://localhost:3000/auth/hackclub/callback
# mediamtx settings
NEXT_PUBLIC_MEDIAMTX_URL=http://localhost:8891
MEDIAMTX_API=http://localhost:9997
NEXT_PUBLIC_MEDIAMTX_URL_EU=http://localhost:8891
MEDIAMTX_API_EU=http://localhost:9997
NEXT_PUBLIC_MEDIAMTX_INGEST_ROUTE_EU=localhost:8890
NEXT_PUBLIC_MEDIAMTX_URL_ASIA=http://localhost:8991
MEDIAMTX_API_ASIA=http://localhost:9999
NEXT_PUBLIC_MEDIAMTX_INGEST_ROUTE_ASIA=localhost:8990
# idt you should change this
MEDIAMTX_PUBLISH_KEY=rjq1xdpCPA4qyt3jge
NEXT_PUBLIC_MEDIAMTX_INGEST_ROUTE=localhost:8890
MEDIAMTX_PUBLISH_KEY=rjq1xdpCPA4qyt3jge