Code Monkey home page Code Monkey logo

brain-jobs's Introduction

Brain-jobs

Java project for the distributed systems course @unimib 2018/2019

Implementazione

brainjobs-backend

Gestione delle API con jersey.

Endpoint:

  • Tutti i job di un utente
[GET] localhost:8080/brainjobs-backend/api/v1/users/{user-id}/jobs
  • Aggiungere un job all'utente specificato
[POST] localhost:8080/brainjobs-backend/api/v1/users/{user-id}/jobs
  • Mostrare uno specifico job
[GET] localhost:8080/brainjobs-backend/api/v1/users/{user-id}/jobs/{job-id}

Esempi dei file json per l'invio di richieste e le risposte del server sono presenti nella cartella /examples

brainjobs-frontend

Gestione della dashboard con ajax.

Attraverso la dashboard è possibile visualizzare tutti i job di un utente, visualizzare i dettagli di uno specifico job e inserire un nuovo job.

L'interfaccia è responsive, sviluppata grazie a Bootstrap.

brain-gateway

Ponte tra backend e frontend.

Riceve le richieste dal frontend, le inoltra al backend e restituisce la risposta al frontend.

Gli endpoint sono gli stessi del backend.

Deployment

Tutti i progetti sono eseguiti dallo stesso server Tomcat v8.5

Strumenti utilizzati

Postman per testare le API durante lo sviluppo di backend e gateway.

Bootstrap per la parte grafica del frontend.

jQuery Serialize Object per serializzare il form da inviare.

Tomcat per il server.

Note

Tutti e 3 i progetti vengono eseguiti dallo stesso server Tomcat.

La soluzione migliore sarebbe stata usare un server per ogni componente (due server Tomcat per backend e gateway, un server http per il frontend che sarebbe dovuto essere un progetto statico).

Viene tutto eseguito dallo stesso server per evitare problemi di Cross-Origin Resource Sharing che non avremmo fatto in tempo a risolvere prima della consegna.

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.