dj-truck-server
API-
GraphQL API for DJ Truck logistics backend
dj-truck-server is a production-ready GraphQL API built with Apollo Server
and Express
. It serves as the backend engine for a logistics-focused DJ platform, providing structured access to music data, user profiles, events, and authentication flows.
This server integrates multiple services into a single API layer using GraphQL schemas merged dynamically at startup. It supports both PostgreSQL and MySQL via Sequelize ORM and is highly configurable via environment variables.
Main features:
- GraphQL API with Apollo + Express
- Authentication via JWT and JWKs (Auth0 compatible)
- ORM support with Sequelize for both MySQL and PostgreSQL
- Dynamic schema merging from modular GraphQL files
- Middleware setup with cookie parsing and CORS
- Hot-reloading for local development with Nodemon
Use cases:
- Centralized backend for mobile/web DJ apps
- Authentication layer for multiple frontend clients
- Event and booking management through GraphQL
- Integration with music metadata APIs and audio file handling
Example flow:
POST /graphql
{
user(id: 5) {
name
bookings {
location
date
}
}
}
The server is modular, easy to deploy, and structured to scale with the platform’s growing features. Designed for maintainability and flexibility.