A Node.js/Express backend API for church management with MongoDB, featuring authentication, member management, attendance tracking, and service scheduling.
- Node.js (v14+)
- MongoDB (Atlas or local)
- Clone and install
git clone https://github.com/your-username/node_churchday.git
cd node_churchday
npm install- Environment Configuration
Create a
.envfile in the root directory with:
PORT=3000
MONGODB_URI=mongodb://localhost:27017/churchdb
JWT_SECRET=your_jwt_secret_here- Run the Application
# Development mode
npm run dev
# Production mode
npm startPOST /api/auth/register- User registrationPOST /api/auth/login- User loginGET /api/members- Get all membersPOST /api/members- Add new memberGET /api/attendance- Get attendance recordsPOST /api/attendance- Record attendanceGET /api/services- Get service schedulesPOST /api/services- Create new service schedule