/ecomm-cpv

Final project for Alura LevelUp! at PagoNxt.

Primary LanguageJavaScriptMIT LicenseMIT

Ecomm CPV

Final project for Alura LevelUp! at PagoNxt.

License MIT CodeFactor

Table of contents

Description

This is an ecommerce with three microservices, accounts, anti-fraud and transactions.

  • Accounts holds users data, including payment, address and login info.
  • Transactions holds all transaction flow and communicates with both accounts and anti-fraud during it's process.
  • Anti-fraud is where a human verification happens when a transaction value is greater or equal to 50% of an user montly income.

Stacks

Node.js MongoDB Swagger Docker Postman Git

Installation

  1. Clone the repository:
git clone https://github.com/chatCPV/ecomm-cpv.git
  1. Install dependencies in root to install eslint:
npm i
  1. Install dependencies on each repository:
# move into the repository:
cd .\<repository>

# then:
npm i
  1. Deploy the containers:
docker-compose up --build