Git Product home page Git Product logo

fabiomiguel2000 / acme-caf-order-system Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 6.5 MB

Android application designed to streamline the ordering and delivery process, coupled with a loyalty campaign, encourages customers to pre-compose their orders.

License: Apache License 2.0

JavaScript 17.95% Dockerfile 0.07% Kotlin 81.98%
android cpm kotlin mobile-app mobile-computing mongodb nodejs online-store

acme-caf-order-system's People

Contributors

adalbertoprog avatar brunosena97 avatar fabiomiguel2000 avatar imgoomes avatar mrgarciamanuel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

acme-caf-order-system's Issues

AllVoucher Adapter Error

RecyclerView            com.feup.coffee_order_application    E  No adapter attached; skipping layout
RecyclerView            com.feup.coffee_order_application    E  No adapter attached; skipping layout

Fetching Vouchers From Real User Data

Problem:

  • Currently, vouchers from cart are not fetching from user's data (hard coded)

Solution:

  • Fetch these vouchers by requesting the endpoint localhost:3000/api/vouchers/client?client=:userId

Server crashes when fetching user data

    throw new ERR_HTTP_HEADERS_SENT('set');
          ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at ServerResponse.setHeader (node:_http_outgoing:652:11)
    at ServerResponse.header (/app/node_modules/express/lib/response.js:794:10)
    at ServerResponse.send (/app/node_modules/express/lib/response.js:174:12)
    at ServerResponse.json (/app/node_modules/express/lib/response.js:278:15)
    at returnResponse (/app/services/general.js:25:29)
    at getSingleUser (/app/controllers/userController.js:62:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'ERR_HTTP_HEADERS_SENT'
}```

Communication encryption

Signatures

To verify a signature, the server should use the customer public key which was transmitted at the
registration phase. The key pair is generated by the app (once) and the private key is kept stored there
in the Android key store. For the signature keys use the “RSA” algorithm and a length of 512 bits (this is
only for illustrative purposes; nowadays RSA key sizes should be at least 2048 bits, or even 4096 or
more), and for the signature algorithm use “SHA256WithRSA”. This produces a signature of 64 bytes
which is the shortest in the Android key store, using standard algorithms.

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.