Official Repository: https://github.com/Mojibrsmapp/dphs-school
This is a production-ready full-stack web application for Dhechua Palong High School, featuring a powerful Admin Panel and dynamic content management.
Follow these steps to host the site on your VPS (Ubuntu/Debian recommended).
- Node.js: v18 or higher
- MySQL: Installed and running
- Git: Installed
git clone https://github.com/Mojibrsmapp/dphs-school.git
cd dphs-schoolnpm installCreate a database in your MySQL server:
CREATE DATABASE dphs_db;Create a .env file in the project root:
nano .envPaste the following (update with your credentials):
# Database Connection
DATABASE_URL="mysql://YOUR_MYSQL_USER:YOUR_MYSQL_PASSWORD@localhost:3306/dphs_db"
# Security
JWT_SECRET="choose_a_long_random_string"
# Server Configuration
PORT=3003
NODE_ENV="production"npx prisma generate
npx prisma db pushnpm run buildFor production, always use the start script with NODE_ENV=production:
NODE_ENV=production npm startnpm install -g pm2
NODE_ENV=production pm2 start server.ts --name dphs-app --interpreter tsx
pm2 save
pm2 startup- Visit
http://your-vps-ip:3003/admin/login - Click "প্রথমবার? অ্যাডমিন তৈরি করুন" (Seed) button.
- This will create the admin account and add Demo Data (Teachers, Notices, Events).
- Login Credentials:
- Email:
admin@dphs.edu - Password:
admin123
- Email:
- Important: Change your password immediately after logging in.
- Port Conflict: If port 3003 is busy, change
PORTin.env. - WebSocket Error: If you run in
devmode and see port 24678 errors, it's because another app is using it. Solution: Always useNODE_ENV=production npm startfor VPS. - Database Error: Ensure MySQL is running and the
DATABASE_URLis correct. - Malformed Database (SQLite): If you see "database disk image is malformed", run these commands to reset the SQLite database:
Note: This will delete all current data. It's highly recommended to use MySQL for production to avoid this.
rm prisma/dev.db npx prisma db push
Developed by AI Studio Build. Footer Credit: © ২০২৫ ধেছুয়াপালং উচ্চ বিদ্যালয় | সর্বস্বত্ব সংরক্ষিত | কারিগরি সহায়তায়: মুজিব আরএসএম