{"id":29617362,"url":"https://github.com/frckbrice/secondary-school-web-app","last_synced_at":"2026-04-12T10:35:13.599Z","repository":{"id":305244094,"uuid":"1022339460","full_name":"frckbrice/secondary-school-web-app","owner":"frckbrice","description":"a school app that display school activities to all the world and that helps the school manage some internal tasks.","archived":false,"fork":false,"pushed_at":"2025-07-19T00:52:29.000Z","size":7591,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T03:58:57.379Z","etag":null,"topics":["docker-file","docker-image","drizzle-orm","gitflow","github-actions","mtn-momo-node-sdk","next15","orange-money","playright","postgresql","react-dom19v","react19","shadcn","stripe-payments","typescript","vitest","xlsx"],"latest_commit_sha":null,"homepage":"https://gbhs-bafia-web-site.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frckbrice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-18T21:56:59.000Z","updated_at":"2025-07-19T00:21:28.000Z","dependencies_parsed_at":"2025-07-19T04:12:15.991Z","dependency_job_id":null,"html_url":"https://github.com/frckbrice/secondary-school-web-app","commit_stats":null,"previous_names":["frckbrice/secondary-school-web-app"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/frckbrice/secondary-school-web-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frckbrice%2Fsecondary-school-web-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frckbrice%2Fsecondary-school-web-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frckbrice%2Fsecondary-school-web-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frckbrice%2Fsecondary-school-web-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frckbrice","download_url":"https://codeload.github.com/frckbrice/secondary-school-web-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frckbrice%2Fsecondary-school-web-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266226982,"owners_count":23895728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-file","docker-image","drizzle-orm","gitflow","github-actions","mtn-momo-node-sdk","next15","orange-money","playright","postgresql","react-dom19v","react19","shadcn","stripe-payments","typescript","vitest","xlsx"],"created_at":"2025-07-21T02:00:59.701Z","updated_at":"2025-12-30T22:07:01.496Z","avatar_url":"https://github.com/frckbrice.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# - Next.js Fullstack School Management System\n\n\u003e **Note:** All project documentation files (API routes, testing guides, etc.) are now located in the `/docs/` directory. The main `README.md` remains at the root for quick reference.\n\nA modern, fullstack school management platform built with Next.js 15, TypeScript, PostgreSQL, Drizzle ORM, and Radix UI. Features robust authentication, real-time updates, admin/teacher/student dashboards, and a fully responsive, accessible UI.\n\n## 🚀 Features\n\n- **Authentication**: NextAuth.js with role-based access control (Super Admin, Admin, Teacher, Student, User)\n- **Database**: PostgreSQL with Drizzle ORM\n- **UI**: Radix UI, Tailwind CSS, modern responsive design\n- **API**: RESTful Next.js API routes for all backend logic\n- **File Uploads**: Multer, Cloudinary integration\n- **Real-time**: WebSocket support, React Query for live data\n- **Admin Dashboard**: 8+ management sections (users, students, teachers, news, events, gallery, applications, contacts)\n- **Student Portal**: Results, petitions, anonymous reports, status tracking\n- **Teacher Portal**: Grade reports, student management, import/export\n- **SEO \u0026 PWA**: SEO-optimized, installable, offline support\n- **Accessibility**: WCAG AA, keyboard navigation, ARIA labels\n- **Testing**: Vitest, React Testing Library, Playwright (E2E)\n- **Dev Experience**: TypeScript, ESLint, Prettier, hot reload\n\n## 🗂️ Project Structure\n\n```\n├── public/                  # Static assets\n│   ├── images/             # Static images (school photos, logos, etc.)\n│   ├── grading-templates/  # Excel templates for grade reports\n│   ├── sample-documents/   # Sample PDFs and documents\n│   └── favicon.png         # Site favicon\n├── src/\n│   ├── app/                # Next.js App Router\n│   │   ├── admin/          # Admin dashboard routes\n│   │   ├── api/            # API routes\n│   │   └── ...             # Other pages/routes\n│   ├── components/         # React components (UI, admin, pages, providers)\n│   ├── hooks/              # Custom React hooks\n│   ├── lib/                # Utilities, db, services\n│   ├── types/              # TypeScript types\n│   └── utils/              # Test/data utilities\n├── migrations/             # Database migrations\n└── docs/                   # Documentation\n```\n\n## 📁 Static Assets\n\n- **Images**: Place all static images in `/public/images/*`\n  - School photos, logos, and static content images\n  - Accessible via `/images/filename.ext` in the app\n- **Documents**: Sample documents in `/public/sample-documents/*`\n- **Templates**: Grading templates in `/public/grading-templates/*`\n\n## 🛠️ Setup\n\n1. **Clone \u0026 Install**\n   ```bash\n   git clone git@github.com:frckbrice/secondary-school-web-app.git\n   cd secondary-school-web-app\n   yarn install\n   ```\n2. **Configure Environment**\n   - Copy `.env.example` to `.env.local` and fill in DB, NextAuth, etc.\n3. **Database**\n   - Start PostgreSQL (see Docker example below)\n   - Run migrations:\n     ```bash\n     yarn run db:generate\n     yarn run db:push\n     # (Optional) Seed sample data\n     yarn run db:setup\n     ```\n4. **Run Dev Server**\n   ```bash\n   yarn run dev\n   # App at http://localhost:3000\n   ```\n\n### Docker (for PostgreSQL)\n\n```bash\ndocker run --name gbhs-postgres \\\n  -e POSTGRES_PASSWORD=password \\\n  -e POSTGRES_DB=gbhs_db \\\n  -e POSTGRES_USER=gbhs_user \\\n  -p 5432:5432 \\\n  -v gbhs_pgdata:/var/lib/postgresql/data \\\n  -d postgres:15\n```\n\n## 🧪 Testing\n\n- **Unit/Integration**: `yarn test` (Vitest, React Testing Library)\n- **E2E**: `yarn run test:e2e` (Playwright)\n- **Custom scripts**: See `src/utils/test-crud.ts`, `src/utils/test-user-forms.ts`\n\n## 🏗️ Build \u0026 Deploy\n\n- **Build**: `yarn run build`\n- **Start**: `yarn run start`\n- **Lint**: `yarn run lint`\n- **Format**: `yarn run format`\n\n## 📝 Default Logins (after seeding)\n\n- Super Admin: `super_admin` / `admin123`\n- Admin: `admin` / `admin123`\n- Teacher: `teacher1` / `teacher123`\n- Student: `GBHS2024001` / `student123`\n\n## 📦 Dockerfile Example\n\n```Dockerfile\n# Dockerfile for  \"\" Next.js App\nFROM node:20-alpine\nWORKDIR /app\nCOPY package.json yarn.lock ./\nRUN yarn install --frozen-lockfile\nCOPY . .\nRUN yarn build\nEXPOSE 3000\nCMD [\"yarn\", \"start\"]\n```\n\n## ⚙️ CI/CD (GitHub Actions Example)\n\nCreate `.github/workflows/ci-cd.yml`:\n\n```yaml\nname: CI/CD\non:\n  push:\n    branches: [main]\njobs:\n  build-test-deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-node@v4\n        with:\n          node-version: 20\n      - run: yarn install --frozen-lockfile\n      - run: yarn lint\n      - run: yarn build\n      - run: yarn test\n      - run: yarn test:e2e\n      - name: Deploy to Vercel\n        uses: amondnet/vercel-action@v25\n        with:\n          vercel-token: ${{ secrets.VERCEL_TOKEN }}\n          vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}\n          vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}\n          vercel-args: '--prod'\n```\n\n## 📄 License\n\nCopyright (c) 2025 X School. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrckbrice%2Fsecondary-school-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrckbrice%2Fsecondary-school-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrckbrice%2Fsecondary-school-web-app/lists"}