GithubHelp home page GithubHelp logo

Comments (5)

jurabek avatar jurabek commented on May 12, 2024 2

some useful curl commands to play around with backend:

  • Adding item into basket:
curl --location 'localhost:8080/basket/api/v1/items' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
  "customer_id": "dfdee7b6-04d3-4d77-89a9-6542a4f2f31a",
  "items": [
    {
      "food_id": 20,
      "food_name": "Cafe Latte",
      "old_unit_price": 0,
      "picture": "/catalog/pictures/20.jpg",
      "quantity": 11,
      "unit_price": 6
    }
  ]
}'
  • User checkout flow for placing the Order:
curl --location 'localhost:8080/checkout/api/v1/checkout' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
  "address": {
    "city": "Test city",
    "country": "TEST",
    "state": "Test state",
    "street_address": "Test Street XXX",
    "zip_code": 99892
  },
  "credit_card": {
    "credit_card_cvv": 971,
    "credit_card_expiration_month": 9,
    "credit_card_expiration_year": 2023,
    "credit_card_number": "4111111111111111"
  },
  "customer_id": "dfdee7b6-04d3-4d77-89a9-6542a4f2f31a",
  "email": "[email protected]",
  "user_currency": "USD"
}'

from restaurant-app.

tuyen-vuduc avatar tuyen-vuduc commented on May 12, 2024 1

Hi @jurabek ,

I can take a look at the mobile part and migrate it from Xamarin to .NET MAUI.

I tried to run the backend locally, but it looks like there are things missing

  • docker-compose-up.sh
  • services/menu.api

Can you help a hand?

from restaurant-app.

jurabek avatar jurabek commented on May 12, 2024

Hi @tuyen-vuduc
can you try to pull latest and run I think due to new docker-compose changes it is broken.

also you can run following:

cd Restaurant-App/src/backend

docker-compose -f docker/docker-compose.yml -f docker/docker-compose.override.yml \
    -f docker/docker-compose.traefik.yml \
    -f docker/docker-compose.kafka.yml \
    -f docker/docker-compose.grafana.yaml \
    -f docker/docker-compose.otel.yml --project-directory . up -d --build

from restaurant-app.

AliYar-Khan avatar AliYar-Khan commented on May 12, 2024

Why not move the mobile app to React Native or Flutter ?

from restaurant-app.

tuyen-vuduc avatar tuyen-vuduc commented on May 12, 2024

I think we can add another solution to have those technologies' implementations as well.

For now, we can leverage what we currently have and upgrade.

from restaurant-app.

Related Issues (20)

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.