Restaurant-App icon indicating copy to clipboard operation
Restaurant-App copied to clipboard

NOTE: Unfortunately I no longer be able to maintain Xamarin(mobile) part

Open jurabek opened this issue 2 years ago • 5 comments

Since I am not using Xamarin long time ago and not working as Mobile dev, I forgot most of the parts, however, anyone is welcome to maintain and use the mobile part for personal and learning purposes.

I will continue to maintain Backend, Infra and Web only

I am thinking to separate the mobile part into a separate repository and deprecating it

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

jurabek avatar Nov 30 '21 18:11 jurabek

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?

tuyen-vuduc avatar Sep 17 '23 05:09 tuyen-vuduc

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

jurabek avatar Sep 18 '23 07:09 jurabek

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"
}'

jurabek avatar Sep 18 '23 07:09 jurabek

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

AliYar-Khan avatar Oct 31 '23 19:10 AliYar-Khan

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.

tuyen-vuduc avatar Nov 07 '23 04:11 tuyen-vuduc