Internal Tech Issue & Feature Tracker
A collaborative backend platform for software teams to report bugs, suggest features, and coordinate resolutions.
DevPulse is a robust RESTful API built with Node.js, Express, and TypeScript. It utilizes a PostgreSQL database accessed via raw SQL queries (pg driver) to manage users and track issues efficiently. The project follows a clean Controller-Service architecture, ensuring a scalable and maintainable codebase.
✅ Live Deployment URL: https://devpulse-iums.onrender.com
- Runtime: Node.js
- Language: TypeScript
- Framework: Express.js
- Database: PostgreSQL (Neon DB)
- Database Driver: Native
pg(Raw SQL) - Authentication: JSON Web Tokens (JWT)
- Security:
bcryptjsfor password hashing
DevPulse uses a Role-Based Access Control (RBAC) system:
| Role | Permissions |
|---|---|
| Contributor | • Register and log in • Create new issues (bug or feature requests) • View all issues • Update fields on their own issues |
| Maintainer | • All contributor permissions • Update any issue field • Delete any issue • Change issue workflow status ( open, in_progress, resolved) |
| Method | Endpoint | Description | Access |
|---|---|---|---|
POST |
/api/auth/register |
Register a new user (contributor or maintainer) |
Public |
POST |
/api/auth/login |
Authenticate user and receive JWT tokens | Public |
POST |
/api/auth/refresh-token |
Obtain a new access token using a refresh token | Public |
| Method | Endpoint | Description | Access |
|---|---|---|---|
POST |
/api/issues |
Create a new issue | Protected |
GET |
/api/issues |
Get all issues (supports ?type=, ?status=, ?sort=) |
Public |
GET |
/api/issues/:id |
Get a specific issue by ID (includes reporter details) | Public |
PATCH |
/api/issues/:id |
Update an issue | Protected (Owner / Maintainer) |
DELETE |
/api/issues/:id |
Delete an issue | Protected (Maintainer Only) |
The database relies on raw SQL via the pg pool.
usersTable: Stores user accounts, hashed passwords, and roles (contributorormaintainer).issuesTable: Stores issue entries (bugorfeature_request), descriptions, statuses (open,in_progress,resolved), and references thereporter_id.
The codebase relies heavily on the Controller-Service Pattern:
- Routes (
*.route.ts): Defines HTTP endpoints and attaches middleware. - Controllers (
*.controller.ts): Handles HTTP requests, extracts parameters/body, and formats the standard JSON response usingsendSuccess. - Services (
*.service.ts): Contains the core business logic, executes raw SQL database queries, and throwsCustomErrorexceptions when rules are violated. - Middlewares (
auth.middleware.ts,globalErrorHandler.ts): Verifies JWT tokens, enforces role boundaries, and centrally formats error responses.
src/
├── config/
│ └── index.ts
├── db/
│ └── schema.ts
├── middleware/
│ ├── auth.middleware.ts
│ ├── globalErrorHandler.ts
│ ├── index.d.ts
│ └── logger.ts
├── modules/
│ ├── auth/
│ │ ├── auth.controller.ts
│ │ ├── auth.interface.ts
│ │ ├── auth.route.ts
│ │ └── auth.service.ts
│ └── issues/
│ ├── issues.controller.ts
│ ├── issues.route.ts
│ └── issues.service.ts
├── utils/
│ ├── catchAsync.ts
│ ├── customError.ts
│ └── response.ts
├── app.ts
└── server.ts
Abdur Rahman Faisal
Software and Data Enthusiast | CSE Undergraduate @ SEU
- Email: arfaisal463@gmail.com
- LinkedIn: linkedin.com/in/abdur-rahman-faisal
- GitHub: github.com/arfaisal043