| id | file_bmxzc1q7 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| filetype | document | ||||||||||
| filename | README | ||||||||||
| created_at | 2026-04-09T16:22:01.868Z | ||||||||||
| updated_at | 2026-04-09T16:22:01.869Z | ||||||||||
| meta |
|
A modern Digital Knowledge Platform for creating, organizing, and sharing academic resources in a structured, searchable, and collaborative environment.
- Node.js 20+ (LTS recommended)
- npm 10+
- Git
- Supabase account (https://supabase.com)
Check versions:
node -v
npm -v
git --version- frontend: Frontend application source (UI, pages, components).
- backend: Backend API and business logic.
- shared: Shared constants, types, and reusable contracts.
- docs: Project documentation and design notes.
- infra: Infrastructure and deployment-related files.
- scripts: Utility scripts for local setup and automation.
- to_do_for_tamim.md: Sprint and implementation task plan.
- understanding.md: Project understanding notes.
- .env.example: Root environment variable template.
- Clone the repository:
git clone https://github.com/shahriarkabir280/Digital-Knowledge-Platform.git
cd Digital-Knowledge-Platform- Go to frontend app:
cd frontend- Create frontend environment file:
cp .env.example .env- Install dependencies:
npm install- Run development server:
npm run dev- Open in browser:
http://localhost:5173/
Stop the server anytime with Ctrl + C.
- Open a new terminal and go to backend:
cd backend- Create backend environment file:
cp .env.example .env-
Get Supabase connection string:
- Go to https://supabase.com/dashboard
- Select your project
- Go to Settings → Database
- Copy the connection string under "JDBC" or "PostgreSQL"
- Paste into
backend/.envasDATABASE_URL
-
Install dependencies:
npm install- Run backend in development mode:
npm run dev- Verify backend is running:
http://localhost:3000/health
http://localhost:3000/api/status
Stop backend with Ctrl + C.
Use two terminals:
- Terminal 1:
cd frontend
npm run dev- Terminal 2:
cd backend
npm run devNote: You can now run npm run dev from the repo root, or run npm run dev separately from frontend and backend folders.
- Create a Supabase project at https://supabase.com
- Go to Project Settings → Database
- Copy the connection string (PostgreSQL URI)
- Paste it into
backend/.envasDATABASE_URL - The backend will automatically connect on startup
npm run dev # Start dev server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Run lint checks- Port already in use:
npm run dev -- --port 5174- If dependencies fail to install, remove lock and retry:
rm -rf node_modules package-lock.json
npm install- Frontend scaffold is ready and runnable.
- Backend API is runnable with Supabase connectivity.
- Core database functionality is in place.
- Local development currently runs with two terminals (
frontendandbackend) usingnpm run dev. - Database is managed by Supabase - no local Docker services needed.
- Simple, clean setup focused on Supabase.