GithubHelp home page GithubHelp logo

anderson92zolis / ecommercechallenge Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.11 MB

Microservices Architecture Design Challenge based in an E-commerce platform

Java 96.81% HTML 2.65% JavaScript 0.54%

ecommercechallenge's Issues

adding Sku

adiing sku attribute to products class

edit diagram of readme.md

  • edit the diagrama ArchitectureMicro2 because the is some phrase wrong **"so on " ** delete
  • add Sync WebClient(WebFlux) to the connection between "Orders and Inventary microservices"
  • pull request
  • update the readme
  • pull request

CRUD endpoints

Before do this card, it's necessery do card 122 is finished.

Customer Microservice Strucutre & DTO & DDBB

Create package strucutre of microservice packages & CustomerDTO & DDBB

PACKAGES:

  • Controller
  • Service
  • Repository
  • DTO
  • Utilities
  • Exceptions
  • Documents / Entities
  • Helpers

FIELDS OF "CustomerDTO":

  • Id => UUID
  • Name => String
  • DNI => String
  • Address => AddressDTO
  • Orders List => List

FIELDS OF "AddressDTO":

  • Stret => String
  • City => String
  • Postal Code => int
  • Country => String

METHOD CHECK DNI:

  • Method to check correct DNI strucuture

Gateway

Create api gateway for this project

Customer Microservice Strucutre & DTO & DDBB

Create package strucutre of microservice packages & CustomerDTO & DDBB (MongoDB)

PACKAGE:

  • Controller
  • Service
  • Repository
  • DTO
  • Utilities
  • Exceptions
  • Documents / Entity
  • Helpers

FIELDS OF "CustomerDTO":
Id => UUID
Name => String
DNI => String
Address => AddressDTO

FIELDS OF "AddressDTO":
Stret => String
City => String
Postal Code => int
Country => String

METHOD CHECK DNI:
Method to check correct DNI strucuture

POE

add kafka to recieve events, queue messages

sonarcloud

figure out how to add a good practice via sonarclub

Stock Microservice

DO ALL:

  • Add all the dependencies required for the stock layer.
  • Set up the Docker Compose for the stock layer.
  • Configure the application.yml for the stock layer.
  • Include all the packages (controller, entity, service, DTO, etc.) for the Stock layer.
  • Set up the stock layer as an Eureka client.
  • Create a stock database in Postgres for the stock layer.
  • Use Postman to send some requests to check the endpoints.

Send requests from order to product

Some tasks to do in order to ask the price when building an order

ProductMicroservice

  • Method getOrderById in Controller, Service and Repository
  • Throw and handle exceptions
  • Test all methods

Clients Microservice

  • create ProductServiceFeignClient

Order Microservice

  • connect the methods to get the price from the product Microservice

delete products db Idea

whe we delete a product from products layer we need to keep the deleted product for a possible orden complain

Product Microservice

addProduct: need to verify if the product with the sku already exist

modifyProduct: pending

deleteProduct: pending

testing

StockMicroservice

count by sku

customer microservice Jws

create a customer microservice for our microservice, it will permit register, authorized, buy. etc.

endpoint Update in Product Microservice

add the enpoint to the product layer:

  • update (verify if we update the name of a product we need change the name in the stock service too, with openFeign)

Service Discovery

create a micrsoervice to communicate the:

  • Orders Micro
  • Products Micro

POE

add notification server
verify the comunication with producer order and notificacion
create a methode for indentified if a orden es correct or not

Add to mongo DDBB the fields Address, OrderList

The mongo DDBB of customer DDBB isn't finished, need add the fields...
dni (String)
address (AddressDTO)
ordersList (Integer)

to leave it the same as CustomersDTO.

Remember to modify...

  1. "mongo-init.js" to create the first customers DDBB inside docker
  2. Test of endpoitn "getall"

eureka spring cloud

look the way to add ApiGateway:

create a microsorvice to communicate the:

  • Orders Micro
  • Products Micro

Stock and Product ms bugs and improvements

Add new stock: or new Product if the sku exist it has to modify existing or redirect to update

Product id and product name doesnt have to be stored en in stock db. When needed must obtain from Product ms

The methods in Product with parameter id must change to sku

endpoint delete Product

add the enpoint to the product layer:

  • delete (verify if we delete a product we need delete in the stock service too, with openFeign)

ProductsRequestTest

do the testing using Builder to verify if a atrribute corresponde to the testing one.

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.