54 lines
1.2 KiB
Markdown
54 lines
1.2 KiB
Markdown
# Africa Alert PWA - Docker Build Instructions
|
|
|
|
## Quick Start (One Command)
|
|
|
|
```bash
|
|
# Clone this folder and run:
|
|
cd africa-alert-pwa
|
|
docker-compose up -d
|
|
|
|
# Access at http://localhost:3000
|
|
```
|
|
|
|
## What You Get
|
|
|
|
✅ **One-click install** - Single `docker-compose up` command
|
|
✅ **PWA ready** - Install on mobile/desktop as native app
|
|
✅ **SQLite database** - Persistent, easy to backup
|
|
✅ **Auto-initialization** - Database created on first run
|
|
✅ **Hot reload disabled** - Production optimized
|
|
|
|
## Default Login
|
|
|
|
- **Email**: admin@school.com
|
|
- **Password**: admin123
|
|
|
|
## Features
|
|
|
|
- 📱 Progressive Web App (installable)
|
|
- 👨🎓 Student Management
|
|
- 👩🏫 Teacher Management
|
|
- 📚 Class & Subject Management
|
|
- 📋 Attendance Tracking
|
|
- 💰 Fee Management
|
|
- 💬 Messaging System
|
|
- 📅 Event Calendar
|
|
|
|
## Manual Build (if needed)
|
|
|
|
```bash
|
|
docker build -t africa-alert .
|
|
docker run -p 3000:3000 -p 3001:3001 -v $(pwd)/data:/app/data africa-alert
|
|
```
|
|
|
|
## Data Location
|
|
|
|
Database: `./data/school.db`
|
|
Uploads: `./uploads/`
|
|
|
|
## Backup
|
|
|
|
```bash
|
|
# Just copy the data folder
|
|
cp -r data data-backup-$(date +%Y%m%d)
|
|
``` |