# Nazareth Church Management System

Presbyterian Church of Ghana, Nazareth Congregation, La

## Setup (AMPPS)

1. **Run the installer** – Visit in your browser:
   ```
   http://localhost/nazareth/install/install.php
   ```
   This creates the `nazareth` database, all tables, and a default admin user.

2. **Default login:**
   - Username: `admin`
   - Password: `admin123`
   - **Change the password after first login.**

3. **Delete the install folder** after setup (for security):
   ```
   rm -rf install/
   ```

## Configuration

- **Database:** Edit `config/database.php` if your MySQL credentials differ (default: root/mysql).
- **Base path:** If the app is not in `/nazareth/`, update `BASE_PATH` in `config/app.php`.

## Features

- **Members** – Register, search, edit members; link to households
- **Households** – Manage families, assign head of household
- **Finance** – Record offerings by fund, view reports
- **Groups** – Create groups/societies, assign members
- **Events** – Add events, track attendance
- **Users** – Admins can create clerks (view-only access to Members)

## Roles

- **Admin** – Full access to all sections
- **Clerk** – Can only view the Members list (no add/edit, no other sections)

If you already installed before the clerk role was added, run:
```
http://localhost/nazareth/install/upgrade.php
```
