Skip to content

Sabbirbracu/RunnerCityHousing_Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Runner City Housing Management System (RCHMS) – Backend

Description

Backend of Runner City Housing Management System (RCHMS), a secure web-based SaaS platform for managing fees, payroll, and community operations in residential complexes. Built with Node.js, Express, and MySQL, it provides RESTful APIs, authentication, and role-based access for seamless integration with the frontend.

Table of Contents

  • Features
  • Tech Stack
  • Installation
  • Configuration
  • API Endpoints
  • Authentication & Authorization
  • Deployment
  • Contributing
  • License


Features

  1. Secure RESTful APIs for managing residents, fees, and payroll.

  2. Role-based access control (Admin, Resident, Staff).

  3. Payment tracking and fee automation.

  4. Community event management.

  5. Integration-ready with the React.js frontend.

  6. Error handling and logging for robust operations.

Tech Stack

  1. Backend: Node.js, Express.js

  2. Database: MySQL

  3. Authentication: JWT, Role-based Access

  4. Containerization: Docker (optional)

  5. CI/CD: GitHub Actions / Render

Installation

# Clone the repository
git clone https://github.com/Sabbirbracu/RunnerCityHousing_Backend.git

# Navigate into the project directory
cd RunnerCityHousing_Backend

# Install dependencies
npm install

Configuration

Create a .env file in the root directory with the following variables:

DB_USER=your_database_user
DB_PASSWORD=your_database_password
DB_NAME=your_database_name
JWT_SECRET=your_jwt_secret
PORT=5000

API Endpoints

Authentication

  • POST /api/auth/register – Register a new user

  • POST /api/auth/login – Login and get JWT

Residents

  • GET /api/residents – Get all residents

  • POST /api/residents – Add a new resident

Fees & Payments

  • GET /api/fees – Get fee details

*POST /api/fees – Add fee record

Payroll

  • GET /api/payroll – Get payroll records

  • POST /api/payroll – Add payroll entry

Authentication & Authorization

JWT-based authentication for secure API access

Role-based access to restrict sensitive endpoints

Middleware for validating tokens and user roles

Deployment

Recommended deployment using Render, AWS, or Docker containers

Ensure database is running and .env is properly configured

Set up CI/CD pipelines for automated testing and deployment

Contributing

Fork the repository

Create your feature branch (git checkout -b feature/your-feature)

Commit your changes (git commit -m 'Add some feature')

Push to the branch (git push origin feature/your-feature)

Open a Pull Request

License

This project is licensed under the MIT License.

About

Backend of Runner City Housing Management System (RCHMS), a secure web-based SaaS platform for managing fees, payroll, and community operations in residential complexes. Built with Node.js, Express, and MySQL, it provides RESTful APIs, authentication, and role-based access for seamless integration with the frontend.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors