Giter Site home page Giter Site logo

se2021-04-officequeuemanager's Introduction

se2021-04-Office Queue Manager

Office Queue Manager

Open source web app for the Office Queue Management system that manages the queues for desk services open the public

Getting Started with Create React App

This project was bootstrapped with Create React App.

Run locally

  • Clone the project from Github
  • Install node modules for server and client with npm install
  • In the /server folder start the server with nodemon server.js it could need to be installed locally on your pc with npm install -g nodemon
  • In the /client folder run the react application with npm start
    It runs the app in the development mode
  • Open http://localhost:3000 to view it in the browser
  • The server will be opened on http://localhost:3001. It is configured as the proxy for the client

React client application routes

  • Route / : used for main page
  • Route /board :
  • Route /manage : page that contains the officer's components
  • Route /stats : page fot statistics (not implemented)

REST API Server

  • GET /api/users
    • Request parameters : none
    • Response parameters : none
  • POST /api/login
    • Send the credentials in order to log in
    • Request parameters : A JSON containing email and password
    • Response parameters : A json containing the officer's name
  • DELETE /api/login/current
    • If the user is logged in, it logs him out
    • Request parameters : none
    • Response parameters : A status which tells if the operation was completed correctly
  • GET /api/login/current
    • Retrieves the information regarding a logged in officer
    • Request parameters : none
    • Response parameters : A json containing the officer's name
  • GET /api/tickets
    • Request parameters : none
    • Response parameters : none
  • GET /api/ticketsbyservices
    • Request parameters : none
    • Response parameters : none
  • GET /api/services
    • Request parameters : none
    • Response parameters : none
  • POST /api/ticket
    • Request parameters : object describing a ticket
    • Response parameters : none
  • POST /api/updateticket
    • Request parameters : id of the ticket to be updated
    • Response parameters : none

Server Database

  • Table SERVICES - it contains id, counter1, counter2, counter3, counter4
  • Table TICKETS - it contains id, value, userid, serviceid, date, state
  • Table USERS - it contains id, name, surname, email, type, password.
    • The password of the officer is crypted through bcrypt

Built with

Screenshot

User credential

Team

se2021-04-officequeuemanager's People

Contributors

djemar avatar lesimo avatar cannarelladev avatar movdario avatar katellgourlet avatar

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.