top of page

Notes- Food Delivery Applications with Microservices & AWS

  • Writer: Anand Nerurkar
    Anand Nerurkar
  • Apr 9, 2024
  • 1 min read

Updated: Apr 13, 2024

  1. create Eureka service

  2. create Restaurent service

    1. -add depednecy below

      1. spring web

      2. eureka client

      3. jpa

      4. h2

      5. lombok

      6. mapstrcut- dto-entity mapping

      7. add plugin for mapstruct to generate classes

  3. we normally do not expose entity directly to client , so we make use of DTO, by using mapper, we do provide dto-entity, entity to dto conversion.

  4. -------------------------application.properties------------------------ spring.application.name=restaurent-service server.port=9091 spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password=password spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.jpa.hibernate-ddl-auto=update spring.jpa.show-sql = true spring.eureka.client.service-url.defaultZone =http://localhost:8761/eureka/


  5. API Testing Result a. Save Restaurent-POST Mapping Request/Response

ree
ree

b.FetchAll--- /restaurents -------GET

ree

ree

c. fetchById- GET

ree

Food Catalog Service


Post- Add Food ITem

ree

GET- FOODTEM/RESTAURENTID

ree


hhhhhhhhhhhhHHHHHH


hhhhhhhhhhhHHHHHH

hhhhhhhhhhhHHHHHHHHH


 
 
 

Recent Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
  • Facebook
  • Twitter
  • LinkedIn

©2024 by AeeroTech. Proudly created with Wix.com

bottom of page