anderson92zolis / ecommercechallenge Goto Github PK
View Code? Open in Web Editor NEWMicroservices Architecture Design Challenge based in an E-commerce platform
Microservices Architecture Design Challenge based in an E-commerce platform
create some exceptions for controller of the stock microsrevice
create a Thymeleaf for product microservice
create a testing for the CATEGORY Enum
For RESTful APIs Products layer, use tools like Swagger to generate API documentation.
Customer
orders
product
stock
Api
create the products layer
create testing for all the methos of the service layer in products
adiing sku attribute to products class
Before do this card, it's necessery do card 122 is finished.
Create package strucutre of microservice packages & CustomerDTO & DDBB
PACKAGES:
FIELDS OF "CustomerDTO":
FIELDS OF "AddressDTO":
METHOD CHECK DNI:
we are going to create a order microservice
Integration Repository Testing for product Microservice
Create api gateway for this project
Create package strucutre of microservice packages & CustomerDTO & DDBB (MongoDB)
PACKAGE:
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
add the getOneProduct method for testing using mock of webclient test
add kafka to recieve events, queue messages
figure out how to add a good practice via sonarclub
Microservice Architecture of the project
testing for controller microservices using mocking with WebMock
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.
do the products UML Diagram
Some tasks to do in order to ask the price when building an order
ProductMicroservice
Clients Microservice
Order Microservice
create some excepciones for the layer of controller to product microservice
adding contributor:
whe we delete a product from products layer we need to keep the deleted product for a possible orden complain
addProduct: need to verify if the product with the sku already exist
modifyProduct: pending
deleteProduct: pending
testing
StockMicroservice
count by sku
create a customer microservice for our microservice, it will permit register, authorized, buy. etc.
add the enpoint to the product layer:
create a micrsoervice to communicate the:
add notification server
verify the comunication with producer order and notificacion
create a methode for indentified if a orden es correct or not
Testing Products entity
communicate the orders and stock layers to verify the stock availables
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...
look the way to add ApiGateway:
create a microsorvice to communicate the:
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
add the enpoint to the product layer:
do the testing using Builder to verify if a atrribute corresponde to the testing one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.