ticket-service
The system allows customers to be able to place support requests, and support agents to process the request.
Features
- Account creation
- Update Account
- Update User role
- Authentication
- Ticket creation
- Close Ticket
- Reopen ticket
- Comment on ticket
Quick Start Guide
To run the cloned codebase directly, you need to have Node.js and Docker installed if you don't have mongoDB installed locally.
- Run
npm i
to install dependencies. - Run
sudo docker-compose up -d
to get a MongoDB instance running. - Make your own
.env
file in the project root, following the key name but not value used in [.env.example
].. - From there, any the following should work:
npm run test
npm run test-debug
npm start
npm run debug
To make user admin on the first time, go to mongodb console:
use tickets_db
db.users.updateOne( { email: "admin@test.com" },
{
$set: {
role: 4
}
})