Skip to content

aparnatonni/devpulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevPulse API

A REST API for managing bug reports and feature requests.

Live URL

https://devpulse-mocha.vercel.app

Tech Stack

  • Node.js
  • TypeScript
  • Express.js
  • PostgreSQL (NeonDB)
  • JWT Authentication

Setup

  1. Clone the repo git clone https://github.com/aparnatonni/devpulse.git cd devpulse

  2. Install dependencies npm install

  3. Create .env file

   PORT=5000
   NODE_ENV=development
   DATABASE_URL=your_neondb_connection_string
   JWT_SECRET=your_secret_key
   JWT_EXPIRES_IN=7d
  1. Run migration npm run migrate

  2. Start the server npm run dev

API Endpoints

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

Database Schema

users

  • id, name, email, password, role, created_at, updated_at

issues

  • id, title, description, type, status, reporter_id, created_at, updated_at

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors