The Unified Department Coordination Platform (UDCP) is a full-stack solution for streamlining inter-departmental collaboration and infrastructure planning. Built with React, Node.js, and PostGIS, it features spatial conflict detection, multi-tier approvals, role-based dashboards, and a citizen portal for public transparency.
- Spatial Conflict Detection: Identify overlapping infrastructure projects across different departments using geospatial data (PostGIS).
- Multi-tier Approvals: Automated workflow for project submission, review, and approval.
- Role-based Dashboards: Custom views for Admins, Department Planners, Approvers, Field Engineers, and Citizens.
- Real-time Notifications: Instant alerts using Socket.io when conflicts arise or project statuses change.
- Analytics & Audit Logs: Track completion rates, budget utilization, and maintain a history of actions.
- Citizen Portal: A public-facing interface for citizens to view ongoing infrastructure projects and submit feedback.
- Frontend: React, Vite, Tailwind CSS
- Backend: Node.js, Express.js, Socket.io
- Database: PostgreSQL, PostGIS (for geospatial queries)
- ORM: Sequelize
- Node.js (v18+)
- npm or yarn
- PostgreSQL (v16+) with PostGIS extension installed
Option A: Using Docker (Recommended for quick setup)
docker run -d \
--name udcp-postgres \
-e POSTGRES_PASSWORD=your_password \
-e POSTGRES_DB=udcp_db \
-p 5432:5432 \
postgis/postgis:16-3.4Option B: Local Installation
- Install PostgreSQL 16+ and the PostGIS extension.
- Open your SQL terminal (psql) and run:
CREATE DATABASE udcp_db;
\c udcp_db
CREATE EXTENSION IF NOT EXISTS postgis;Open a terminal and navigate to the backend directory:
cd Backend- Install dependencies:
npm install- Configure environment variables:
cp .env.example .envEdit the .env file and set your DATABASE_URL with your actual Postgres credentials:
PORT=5000
DATABASE_URL=postgresql://postgres:your_password@localhost:5432/udcp_db
JWT_SECRET=your_jwt_secret_key
JWT_EXPIRES_IN=7d
CLIENT_URL=http://localhost:5173
NODE_ENV=development- Database Migration & Seeding: Run the following commands to set up the tables and populate demo data:
npm run reset # This will migrate and seed the database- Start the backend server:
npm run devThe server will be running at http://localhost:5000.
Open a new terminal window and navigate to the frontend directory:
cd Frontend- Install dependencies:
npm install- Configure environment variables:
Create a
.envfile in theFrontendfolder (or copy from.env.exampleif available) and add:
VITE_API_URL=http://localhost:5000/api- Start the frontend application:
npm run devThe app will be running at http://localhost:5173.
Once you have run the database seeders, you can log into the platform using the following accounts. The default password for all demo accounts is password123.
| Role | |
|---|---|
| Admin | admin@udcp.gov |
| Dept Planner (PWD) | pwd.planner@udcp.gov |
| Approver | approver@udcp.gov |
| Field Engineer | engineer@udcp.gov |
| Citizen | citizen@example.com |
UDCP Prototype/
├── Backend/ # Node.js Express server
│ ├── src/
│ │ ├── controllers/ # Route logic
│ │ ├── migrations/ # DB schema changes
│ │ ├── models/ # Sequelize schemas
│ │ ├── routes/ # Express API endpoints
│ │ └── seeders/ # Mock data injection
│ └── package.json
└── Frontend/ # React Vite application
├── src/
│ ├── components/ # Reusable UI components
│ ├── pages/ # Application views/routes
│ └── services/ # API integrations
└── package.json
This project is licensed under the ISC License.