TicketMaster Server
TicketMaster Server is a backend system built with Node.js and PostgreSQL to manage user authentication, event creation, and ticket handling for an event registration system which is a PROOF OF CONCEPT for zkp implementation
-
Backend: Node.js, Express.js
-
Middleware: ZKP(Zero knowledge proof)
-
Database: PostgreSQL with Sequelize ORM
-
Authentication: bcrypt (for password hashing)
-
Environment Configuration: dotenv
-
Logging: Winston
-
API Testing: Postman Mock Server
ticketmaster-server/
│-- config/ # Configuration files
│-- controller/ # API Controllers
│-- middleware/ # Middleware functions
│-- model/ # Sequelize models
│-- route/ # API routes
│-- utils/ # Utility services (logger, helpers)
│-- .env # Environment variables
│-- .gitignore # Ignored files
│-- package.json # Dependencies and scripts
│-- server.js # Main server file
- Install Node.js
- Install PostgreSQL
- Install Postman for API testing
git clone https://github.com/Fundspay/ticketmaster-server.git
cd ticketmaster-servernpm installCreate a .env file in the root directory and configure it as follows:
PORT=3000
DB_DIALECT=postgres
DB_HOST=localhost
DB_PORT=5432
DB_NAME=ticketmaster
DB_USER=postgres
DB_PASSWORD=yourpassword
DB_USE_PASSWORD=truenpm run devServer will start on http://localhost:3000
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/auth/register |
Register a new user |
| POST | /api/v1/auth/login |
User login |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/events/create |
Create an event |
| GET | /api/v1/events/ |
Get all events |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/tickets/register |
Book a ticket for an event |
| GET | /api/v1/tickets?user_id=$userId |
Get user tickets |
To test API endpoints, use the Postman Mock Server:
https://84f8b891-d16f-4dc7-a9c7-4b409123518d.mock.pstmn.io
- **Nikhita Watpal**
This project is licensed under the MIT License.
🚀 Now you are ready to start working on TicketMaster Server! 🎟️