Skip to content

Backend service for a Patrol Management System, built with Node.js, Express, TypeScript, and Sequelize. This project provides a REST API and real-time communication using Socket.IO.

Notifications You must be signed in to change notification settings

DarmawanWeb/patrol-monitoring-be

Repository files navigation

🛡️ Patrol Management System Backend

Backend service for a Patrol Management System, built with Node.js, Express, TypeScript, and Sequelize. This project provides a REST API and real-time communication using Socket.IO.

🚀 Key Features

  • JWT Authentication
  • RESTful API for users, patrol routes, and reporting
  • Real-time communication with WebSocket
  • Security middlewares: Helmet, CORS, and Compression
  • Logging with Pino
  • Database migration and seeding using Sequelize CLI
  • Input validation with Express Validator

🧰 Tech Stack

  • Node.js (ESM Module)
  • Express 5
  • PostgreSQL + Sequelize ORM
  • TypeScript
  • Socket.IO
  • ESLint + Prettier + Husky

📦 Installation

1. Clone the repository

git clone https://github.com/DarmawanWeb/patrol-monitoring-be.git
cd patrol-monitoring-be

2. Install dependencies

pnpm install

3. Setup environment variables

Create .env file based on .env.example:

cp .env.example .env

4. Start the server (development)

pnpm dev

5. Start the server (production)

pnpm build
pnpm start:prod

⚙️ Scripts

  • pnpm dev — Run development server with hot reload
  • pnpm build — Compile TypeScript files
  • pnpm start — Run compiled code
  • pnpm format — Format code using Prettier

📄 License

© 2025 by @agus-darmawan. This project is under a proprietary license.

About

Backend service for a Patrol Management System, built with Node.js, Express, TypeScript, and Sequelize. This project provides a REST API and real-time communication using Socket.IO.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published