This project is a ticket helpdesk system built with Next.js, Prisma, and MaterialUI, designed to manage support tickets efficiently.
Before running the project, make sure you have the following installed:
- Node.js
- npm or yarn or bun
- Clone the repository:
git clone https://github.com/Tezigudo/ticket-helpdesk.git
- Go to project directory
cd ticket-helpdesk
- Install dependencies:
# npm
npm install
# yarn
yarn install
# bun
bun install
- Run database migrations:
# npm or yarn
npx prisma migrate dev --name init
# bun
bunx prisma migrate dev --name init
- Generate Prisma client:
# npm or yarn
npx prisma generate dev
# bun
bunx prisma generate dev
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.
To populate the database with mock ticket data, you can run the mock API endpoint provided:
GET: /api/tickets/mock
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.
For detailed documentation of the API endpoints, refer to the API documentation.