Prerequisites
- Node.js: v20 or higher
- pnpm: v8 or higher
- MongoDB: A local instance or a MongoDB Atlas connection string
- Clerk Account: For authentication
Repository Structure
PyqDeck is a monorepo (though managed without a root workspace tool for now):backend/: Express.js APIfrontend/: Next.js Web Appdocs/: Mintlify documentation
Local Setup
1. Clone the repository
2. Backend Setup
.env with:
MONGODB_URICLERK_PUBLISHABLE_KEYCLERK_SECRET_KEY
3. Frontend Setup
.env.local with:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEYCLERK_SECRET_KEYNEXT_PUBLIC_API_URL=http://localhost:3000/api/v1
Seeding Data
To populate your local database with initial data:Running Tests
Backend
Frontend
Troubleshooting
- CORS Errors: Ensure
ALLOWED_ORIGINSinbackend/.envincludeshttp://localhost:3001(or whatever port your frontend is running on). - Authentication: If you see 401 errors, ensure your Clerk keys are correct and you are logged into the frontend.

