Skip to content

Latest commit

 

History

History
79 lines (59 loc) · 1.94 KB

File metadata and controls

79 lines (59 loc) · 1.94 KB

Study-Room

AI study workspace monorepo (frontend + API) using pnpm workspaces.

Quick start

pnpm install

Create .env in repo root if you do not have one yet:

API_PORT=5000
API_ORIGIN=http://localhost:5000
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/study-room
BETTER_AUTH_SECRET=replace-with-32-char-secret-minimum
FRONTEND_ORIGIN=http://localhost:21654
VITE_DEV_PORT=21654
VITE_API_BASE_URL=http://localhost:5000
VITE_BASE_PATH=/
GOOGLE_CLIENT_ID=replace-with-google-client-id
GOOGLE_CLIENT_SECRET=replace-with-google-client-secret
DISCORD_CLIENT_ID=replace-with-discord-client-id
DISCORD_CLIENT_SECRET=replace-with-discord-client-secret

Run

Frontend (main app):

pnpm --filter @workspace/study-workspace dev # run the frontend

API server:

pnpm --filter @workspace/api-server dev # run the backend

Generate/apply DB migration:

pnpm --filter @workspace/db generate # generate the migration if reseted database
pnpm --filter @workspace/db migrate # apply the migration to the database

Useful commands

pnpm run typecheck # check for type errors in the project
pnpm run build # build the project
pnpm --filter @workspace/study-workspace typecheck # check for type errors in the frontend
pnpm --filter @workspace/api-server typecheck # check for type errors in the backend

Early Look of the app

1778326517958 1778247850889 1778247976880 1778247999654 1778248034110 1778248107815 1778248163991 1778248184175 1778248201115 1778248218157

ERD Diagram

1778317679270