Repository navigation
LOCAL_SETUP
github-actions[bot] edited this page May 22, 2026
·
10 revisions
This guide walks through setting up the project locally without Docker. For the quickest setup, see the Docker instructions in README.md.
- Node.js v18 or later
- npm (comes with Node.js)
- Git
- PostgreSQL (Mandatory for core identity and workspaces)
- MongoDB (Required for assessment data)
- Apache Cassandra (optional - for MessagePal chat history)
git clone https://github.com/StarkNitish/PersonalLearningPro.git
cd PersonalLearningPronpm install- Create a database named
eduai_pg. - Provide the connection string in your
.envasDATABASE_URL. - Run the schema script:
psql -d eduai_pg -f scripts/pg-schema.sql.
- Install locally or use MongoDB Atlas.
- Provide the connection string as
MONGODB_URL.
Create a .env file:
cp .env.example .envRequired variables for local development:
# PostgreSQL (Required)
DATABASE_URL=postgres://user:pass@localhost:5432/eduai_pg
# MongoDB (Required)
MONGODB_URL=mongodb://localhost:27017/eduai
# Session secrets (Required)
SESSION_SECRET=your-session-secret
JWT_SECRET=your-jwt-secret
# Gemini (Required for AI features)
GOOGLE_API_KEY=your-gemini-key
# SMTP (Required for invites and verification)
SMTP_HOST=smtp.gmail.com
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-passwordnpm run devThe application will be available at: http://localhost:5001
Note: Access and Refresh tokens are delivered via HttpOnly cookies. Ensure your browser allows cookies for localhost.
| Directory | Description |
|---|---|
client/src/ |
React frontend (Vite) |
server/routes/auth.ts |
Local and Workspace Auth logic |
server/lib/pg-queries.ts |
PostgreSQL data access layer |
server/storage.ts |
Legacy/MongoDB storage abstraction |
scripts/pg-schema.sql |
PostgreSQL database schema |
Verify that your DATABASE_URL is correct and the PostgreSQL service is running. Use psql -l to check if your database exists.
Ensure your SMTP settings in .env are valid. If using Gmail, you must use an App Password.
If you are testing on 127.0.0.1 instead of localhost, some browsers may block HttpOnly cookies. Use localhost:5001 consistently.