Giter Club home page Giter Club logo

onlinepizzeria_labor2's People

Contributors

dependabot[bot] avatar kotn3l avatar lehorichard avatar palkriah avatar

Watchers

 avatar

Forkers

lehorichard

onlinepizzeria_labor2's Issues

Implement Views for all services and models

Due to Order services 'get pizzas in preparation order' method, one pizza's picture could've been sent multiple times, causing a really heavy response (over 50MBs), where the pictures are not even visible.

To fix this, I needed to implement a Views class, which introduces a public and an internal view.

Public only returns the fields which have the public annotation above them, while Internal returns public AND internal ones. JSONIgnores are still ignored on all.

API documentation

  • [✓] Pizza service
  • [✓] Order service
  • [✓] Scheduling service
  • [✓] Delivery service
  • [✓] Authentication service
  • [] Review

Joining Pizza and Ingredients is buggy

I committed up a code that I thought was working ok, but it's not. (1a1c97f and f942966)
I pushed up a version of the files where the buggy code is commented out.

Problem: when returning all pizzas with the ingredients, Spring adds a new column, new foreign key to the pizza table.

Ingredient oriented scheduling

Unfortunately after days of trying to get it working, I still can't quite get it working. It puts false values into the database, also sometimes duplicates them for some reason, so for now it is never used.

Rename order table to orders

The word order is used by MySQL, and it cannot properly execute queries using that name. (It can if we put the word in between weird quotation marks.) However, we cannot change the auto-generated queries.

By writing our own insert query, the generated id for the order won't get saved into the entity's id field, but by using the auto-generated save method, it does.

There is probably a solution to make sure a custom insert query/method return the generated id, but another solution is to rename the table.

Pizzeria Database

  • Database created in MySQL

I hope everything is correct, please correct me if it's not. Feel free to update it also.

Usecase

Usecase UML ábrájának elkészítése

Use case diagram

  • Actorok meghatározás
  • Use case-ek meghatározása
  • Ezek összekötése

Implementing backend services correctly

Current backend service implementations (only PizzaService though) could use some more transparency, and the use of the recommended service template. (Core, Controller, DAO, Service, Web) Future services must be implemented using this scheme.

Backend Order services implementation

  • Order services

  • Post order

  • Get pay methods

  • Get delivery cities

  • Get prep order

  • Post pizza prepared

  • get orders that are ready to deliver

  • session string

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.