Quick start (backend):
npm install- Copy
.env.exampleto.envand setMONGODB_URI+JWT_SECRET npm run dev
Quick start (frontend):
cd frontendnpm install- Create
frontend/.envwithVITE_GRAPHQL_URL=/graphql npm run dev
Notes:
- In dev, Vite proxies
/graphqlto the backend so cookies work without CORS. - Use the GraphQL Sandbox at
http://localhost:4000/graphqlfor API testing.
Optional:
- Backend:
npm run typecheck,npm run build,npm start - Frontend:
npm run build,npm run preview