Create a backend for a petshop whos wants to sell products and adopt pets. The main go is to practie: java, spring, deno, typescript, aws bucket, activeMQ, gRPC.
The project will has two main gols:
- Store: sell products
- Adoption: control the flow of adoption a pet
Allow user to buy products for pet online
- ms-auth
- ms-user
- ms-store
- ms-store-cart
- ms-store-product
- ms-store-tracking
- Insert pet
- Insert client
- Insert, List services
- Card
- Login
Allow user to adopt a pet by chosen in a list. The petshop will evaluate the candidate to check if he/she matchs with the dog's breed
- ms-adopt
- ms-adopt-clinic
- ms-adopt-animal
- ms-adopt-process
- Insert pet
- Insert Adoptante
- List pets
- Order Adoption
- Login
- POST to ms-adopt
- ms-adopt POST to ms-storage with de animals photos
- ms-adopt POST to ms-adopt-process to start the process
- ms-adopt-process return the process id for that animal
- ms-adopt GET to ms-adopt-animal
- ms-adopt PATCH to ms-adopt-process passing the id animal
- ms-adopt-process check if the animal has a previous process
- ms-adopt-process create a history for the old process
- ms-adopt-process reinit the process
- ms-adopt-process return the id process
- PATCH to ms-adopt
- ms-adopt GET ms-user for the user exists by document number
- ms-adopt PATCH ms-user with the new user
- ms-adopt return success
- POST to ms-user
- valid if the user exists
- return the user id
- GET to ms-adopt
- ms-adopt GET to ms-adopt-animal
- ms-adopt-animal paginate the results in 50 rows
- GET to ms-adopt
- ms-adopt GET to ms-adopt-process passing the id process
- ms-adopt-process return the process with the step
- POST to ms-adopt
- ms-adopt POST to ms-adopt-process passing the animal id and the clinic id
- check if is the correct step
- update the step
- update the database if the info
- POST to ms-adopt
- ms-adopt POST to ms-adopt-process
- passing the veterinary text
- check if is the correct step
- update the step
- update the database if the info
- POST to ms-adopt
- ms-adopt POST to ms-adopt-process
- passing the animal id
- Only animals with the other steps are ok
- Change step to MORAL
- Enable the animal to appear in the moral
- POST to ms-adopt
- ms-adopt POST to ms-adopt-process
- passing the user id and the animal id
- check if the animal is on step MORAL
- update step to USER_APPLYING
- PATCH to ms-adopt-animal to unable the animal to show in moral
- passing the process id, user adopter id, user employee id and a data
- POST to ms-adopt
- ms-adopt POST to ms-adopt-process
- check if user adopter has not other process no finished
- check if the animal is on the MORAL step
- update step to INTERVIEW_SCHEDULED
- update user to the process
- passing the process id, aproved boolean
- POST to ms-adopt
- ms-adopt POST to ms-adopt-process
- check if step is INTERVIEW_SCHEDULED
- update decision to the process
- if not aproved, finally the process
- if aproved, update step to CONTRACT
- passing a pdf file and the process id
- POST to ms-adopt
- ms-adopt POST to ms-adopt-process
- save file on aws s3
- update process to FINALLY
- ms-user
- ms-auth
- ms-bank
- ms-storage
- Passing id user and pass to ms-auth
- Checking id user in ms-user
- Generate jwt token and refresh token
- Delete authentication
- Passing perfil id, name, document number
- Post to ms-user
- Checking if user login exists
- Return 201 create status
- Post to ms-storage
- Save on aws bucket
- Save file key on database
- Return file key
- Get to ms-user
- Return a list with perfils