/realtime-colaborative-whiteboard-ai

This is my submission for an internship test.

Primary LanguageTypeScript

Project: Realtime Collaborative Whiteboard with AI predictions

Previews:

image

2023-09-17_16-32-13.mp4

Steps to host locally:

  1. Requirements:
  1. 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=""
  1. Add redirect URIs for Oauth2 providers:
  • Google: http://localhost:3000/api/auth/callback/google
  • Github: http://localhost:3000/api/auth/callback/github
  1. Install dependencies:
bun i
  1. Configure prisma:
bunx prisma generate
bunx prisma db push
  1. Run the websocket server:
mkdir -p persistense-whiteboard-data
HOST=localhost PORT=1234 YPERSISTENSE=./persistense-whiteboard-data bunx y-websocket
  1. Run the NextJS app:
bun run dev