TicketIt is a support ticket system built with Next.JS, React, and Prisma.
To register as a user, navigate to the registration page and enter your details.
- Normal users: Register using a regular email. Normal users can submit/view their tickets. Users can also click on a ticket in order to view responses/respond.
- Admin users: Register with an email that includes
+admin
. Admin users can view, reply to, and change the status of tickets by clicking on them.
Before you begin, ensure you have met the following requirements:
- You have installed Node.js and npm.
- You have a macOS machine. This app may work on other operating systems, but it was developed and tested on macOS.
To install TicketIt, follow these steps:
- Clone the repository:
git clone https://github.com/NatanTechofNY/TicketIt.git
- Navigate to the project directory:
cd TicketIt
- Install the dependencies:
npm install
This application uses Prisma as an ORM. You can set it up with either SQLite or PostgreSQL.
- Update the
DATABASE_URL
in the.env
file to use SQLite:
DATABASE_URL="file:./dev.db"
- Run the Prisma migration:
npx prisma migrate dev
- Update the
DATABASE_URL
in the.env
file to your PostgreSQL connection string:
DATABASE_URL="postgresql://user:password@localhost:5432/mydb?schema=public"
- Run the Prisma migration:
npx prisma migrate dev
To use TicketIt, follow these steps:
- Start the development server:
npm run dev
- Open your web browser and navigate to
http://localhost:3000
.
If you want to contact me, you can reach me at natanyagudayev@gmail.com
.
I don't care if you use it, we learn by learning.