This repository contains the public institution website, its own website administration panel, and its dedicated backend. School management software is preserved in the separate local Git repository at D:/pbm/school-management-software. That folder is ignored by this repository and can be moved independently.
GitHub repositories: website and website admin · school management software. Each repository maintains its own main branch, backend, database configuration and feature handoff.
Read PROJECT_HANDOFF.md for the current project record and FEATURE_CHANGELOG.md for feature history. Earlier complete ERP feature records remain in docs/handoffs/ and the software repository.
| Application | Source | Local URL |
|---|---|---|
| Public website | apps/website |
http://127.0.0.1:5173/ |
| Website admin panel | apps/admin |
http://127.0.0.1:5173/admin/login |
| Website backend (internal) | apps/api |
http://127.0.0.1:5000/api, proxied through port 5173 |
Set-Location D:/pbm
npm ci
npm run dev:allThe website and website admin share one development server on port 5173: / serves the website and /admin/ serves administration. Port 5174 is no longer used. npm run dev, dev:frontend, dev:website, and dev:admin all start this shared frontend server without starting the API. npm run dev:api starts just the website backend; dev:all starts the shared frontend and website backend together.
Both frontends proxy /api and /uploads to the website backend. Frontend examples are in their .env.example files.
Admin/website links use the current origin by default, including when accessing the site from another device. Existing sessions on another port may require signing in again.
Sign in to the website admin panel to manage:
- institution identity, logo and contact details;
- page content, news ticker, banner, introductions, principal message and facilities;
- teachers and public academic information;
- gallery, admission instructions, useful links, social profiles, map and footer;
- notices and events;
- website users, roles and access.
Website updates are saved in the website database and appear on refresh without rebuilding the public frontend.
Student admission, enrollment, subject assessment, exams, marks, fee collection and other ERP workflows belong to the software repository, not this website admin panel.
Use database/mysql-schema.sql for a fresh website database. Configure apps/api/.env using its example; never overwrite an existing configuration or commit secrets.
Existing ERP data can be copied into a new website database with the guarded migration utility:
node scripts/migrate-website-database.mjs --target-db NEW_EMPTY_WEBSITE_DB --source-env D:/pbm/school-management-software/apps/api/.envThe local migration into pbm_website is already complete. Do not rerun it against that populated database. For another installation, replace the example target and source path, and read the utility/handoff first. It copies website records/admin access and public teacher/academic snapshots without deleting or rewriting the software's database. Configure website DB_NAME after a successful migration. An explicit --resume-empty may resume only an empty incomplete website schema.
For a fresh administrator, configure the bootstrap values described in the API README, then run npm run create-admin.
The website runs independently. Configure the server-side SOFTWARE_API_URL in apps/api/.env only when the external software's public exam/results API should appear on the website. Use the base including /api, e.g. http://127.0.0.1:5001/api. Software credentials and private student APIs are not required for public lookup.
The software repository has its own commands, API port 5001 and admin port 5184. Running the website does not start the software.
npm run build
npm startBuild outputs: apps/website/dist and apps/admin/dist. npm start serves the website API/uploads only. Nginx/Caddy serves both frontend builds; see deployment instructions.
No live deployment has been performed. Repository history is retained; this separation changes current source ownership rather than rewriting old Git history.