- node.js/express backend
- Vue.js Web application (https://github.com/aduda091/queueManagementWeb)
- Android mobile application (https://github.com/aduda091/queueManagementAndroid)
npm install
npm start
POST /users/register // Registers a new user
POST /users/login // Returns a token
GET /users/me // Returns user info and reservations, needs token
PUT /users/me // Edit logged in user, needs token
GET /facilities // Returns facilities array
POST /facilities // Creates a facility, needs admin token
GET /facilities/:id // Returns a facility by ID
PUT /facilities/:id // Edits a facility by ID, needs admin token
POST /facilities/:id // Adds a queue to facility by ID, needs token
GET /queues/:id // Returns a single queue by ID
PUT /queues/:id // Edits a single queue by ID, needs admin token
DELETE /queues/:id/reset // Resets a queue by ID (current:0, next:1, delete belonging reservations), needs admin token
DELETE /queues/:id/next // Advances a queue by ID, returns next reservation (or first if current==0), needs admin token
GET /reservations/:id // Returns a single reservation by ID
POST /reservations/:id // Enter a queue by ID, needs token
GET /reservations/queue/:id // Returns all reservations in a queue by ID
DELETE /reservations/:id // Exit a queue (remove reservation) by ID, needs token
POST /tests/addRandomUser // Register a new random user, needs admin token
{firstName, lastName, mail, password, role(defaults to 'user')}
{name, address, mail, telephone}
{name, facility, current, next}
{user, queue, time, number}