Project: Realtime Collaborative Whiteboard with AI predictions
2023-09-17_16-32-13.mp4
- Requirements:
- Setup
.env
file:
GITHUB_APP_CLIENT_ID=""
GITHUB_APP_CLIENT_SECRET=""
NEXTAUTH_SECRET=""
NEXTAUTH_URL="http://localhost:3000"
WEBSOCKET_URL="ws://localhost:1234"
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
POSTGRES_URL=""
- Add redirect URIs for Oauth2 providers:
- Google:
http://localhost:3000/api/auth/callback/google
- Github:
http://localhost:3000/api/auth/callback/github
- Install dependencies:
- Configure prisma:
bunx prisma generate
bunx prisma db push
- Run the websocket server:
mkdir -p persistense-whiteboard-data
HOST=localhost PORT=1234 YPERSISTENSE=./persistense-whiteboard-data bunx y-websocket
- Run the NextJS app: