A REST API for managing bug reports and feature requests.
https://devpulse-mocha.vercel.app
- Node.js
- TypeScript
- Express.js
- PostgreSQL (NeonDB)
- JWT Authentication
-
Clone the repo git clone https://github.com/aparnatonni/devpulse.git cd devpulse
-
Install dependencies npm install
-
Create .env file
PORT=5000
NODE_ENV=development
DATABASE_URL=your_neondb_connection_string
JWT_SECRET=your_secret_key
JWT_EXPIRES_IN=7d
-
Run migration npm run migrate
-
Start the server npm run dev
| Method | Endpoint | Access | Description |
|---|---|---|---|
| POST | /api/auth/signup | Public | Register a new user |
| POST | /api/auth/login | Public | Login and get token |
| GET | /api/issues | Public | Get all issues |
| GET | /api/issues/:id | Public | Get single issue |
| POST | /api/issues | Authenticated | Create an issue |
| PATCH | /api/issues/:id | Authenticated | Update an issue |
| DELETE | /api/issues/:id | Maintainer only | Delete an issue |
- id, name, email, password, role, created_at, updated_at
- id, title, description, type, status, reporter_id, created_at, updated_at