GithubHelp home page GithubHelp logo

br4adam / ticket-management Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 2.56 MB

A full-stack app specifically designed to track issues.

TypeScript 81.71% HTML 0.58% CSS 17.17% Dockerfile 0.54%
css express mongoose nodejs react ticketing-system axios zod recharts mern

ticket-management's Introduction

Ticket Management

๐Ÿ’ป About

This full-stack app specifically designed to track issues and manage tickets.

With this application, users can easily create tickets, track their progress and communicate with administrators on the platform. Additionally, a dashboard is provided to allow users to view the status of their tickets and charts for analyzing aggregated ticket data.

๐Ÿ–ฅ๏ธ Demo

๐Ÿš€ Run locally

Clone the project using the following command:

git clone https://github.com/br4adam/ticket-management

Navigate to the project directory using the following command:

cd ticket-management

Install client dependencies and start the client using the following commands:

cd client
npm install
npm run dev

Install server dependencies, build and start the server using the following commands:

cd server
npm install
npm run build
npm start

โš™๏ธ Environment variables

Before running the app, make sure to create .env files for both the server and client directories with the following variables:

Client environment variables:

VITE_REDIRECT_URI=http://localhost:5173/callback
VITE_SERVER_URL=http://localhost:8000
VITE_CLIENT_ID=<YOUR_GOOGLE_OAUTH_CLIENT_ID>

Server environment variables:

PORT=8000
MONGO_URI=<THE_URL_OF_YOUR_MONGODB_DATABASE>
GOOGLE_CLIENT_ID=<YOUR_GOOGLE_OAUTH_CLIENT_ID>
GOOGLE_CLIENT_SECRET=<YOUR_GOOGLE_OAUTH_SECRET_KEY>
GOOGLE_REDIRECT_URI=http://localhost:5173/callback
JWT_SECRET_KEY=<YOUR_JWT_SECRET_KEY>
TOKEN_EXPIRATION_TIME=2h

๐Ÿงฐ Tools and technologies

  • MongoDB Atlas: A cloud-based fully managed database-as-a-service for MongoDB.
  • Mongoose: An ODM library that creates a connection between MongoDB and Node.js.
  • Node: An open-source, cross-platform JavaScript runtime environment.
  • Express: A web framework for Node.js that makes building web applications and APIs easier.
  • React: A JavaScript library for building user interfaces using reusable components.
  • Zod: A TypeScript-first schema validation library with a focus on developer experience.
  • Axios: A promise based HTTP client for the browser and Node.js.
  • RxJS: A reactive programming library for JavaScript.
  • Json Web Tokens: A standard for securely transmitting information between parties as a JSON object.
  • Jest: A delightful JavaScript testing framework.
  • Supertest: A Node.js library for testing APIs.
  • Swagger: A set of tools used to generate documentation for REST APIs.
  • Recharts: A composable charting library for building declarative and reusable charts.
  • i18next: An internationalization framework for JavaScript.

ticket-management's People

Contributors

br4adam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

appcrafts

ticket-management's Issues

ReferenceError: fetch is not defined

I'm getting following error in server when I try to login using google auth

ReferenceError: fetch is not defined
at /home/user/Desktop/temp/ticket-management/server/dist/api/google.js:26:26
at Generator.next ()
at /home/user/Desktop/temp/ticket-management/server/dist/api/google.js:8:71
at new Promise ()
at __awaiter (/home/user/Desktop/temp/ticket-management/server/dist/api/google.js:4:12)
at getIdToken (/home/user/Desktop/temp/ticket-management/server/dist/api/google.js:24:30)
at /home/user/Desktop/temp/ticket-management/server/dist/routes/login.js:36:48
at Generator.next ()
at /home/user/Desktop/temp/ticket-management/server/dist/routes/login.js:8:71
at new Promise ()

Node JS - v14.17.6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.