Tezigudo / ticket-helpdesk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ticket Helpdesk

This project is a ticket helpdesk system built with Next.js, Prisma, and MaterialUI, designed to manage support tickets efficiently.


Getting Started

Prerequisites

Before running the project, make sure you have the following installed:

  • Node.js
  • npm or yarn or bun

Installation

  1. Clone the repository:
git clone https://github.com/Tezigudo/ticket-helpdesk.git
  1. Go to project directory
cd ticket-helpdesk
  1. Install dependencies:
# npm
npm install

# yarn
yarn install

# bun
bun install
  1. Run database migrations:
# npm or yarn
npx prisma migrate dev --name init

# bun
bunx prisma migrate dev --name init
  1. Generate Prisma client:
# npm or yarn
npx prisma generate dev

# bun
bunx prisma generate dev

Running the Application

To run the application in development mode, use the following command:

# npm
npm run dev

# yarn
yarn dev

# bun
bun dev

Open http://localhost:3000 with your browser to see the result.

Mocking Data

To populate the database with mock ticket data, you can run the mock API endpoint provided:

GET: /api/tickets/mock

Running Tests

To run tests, you can use the following commands:

# npm
npm test
# yarn
yarn test
# bun
bun test

These commands will execute the test suites and provide feedback on the test results.

API Documentation

For detailed documentation of the API endpoints, refer to the API documentation.

About


Languages

Language:TypeScript 99.0%Language:CSS 0.6%Language:JavaScript 0.4%