Skip to content

Latest commit

 

History

History
106 lines (73 loc) · 1.94 KB

File metadata and controls

106 lines (73 loc) · 1.94 KB

Documentation

  1. Home
  2. Architecture
  3. Pipelines
  4. Using
  5. Screens
  6. GraphQL API
  7. Observability and Monitoring
  8. Roadmap

Running Local

Authentication

# Using aws-vault cli
$aws-vault exec <profile-name> -s -d 12h

# Using aws-cli
$ aws configure
# Select options

Backend

Services:

  • GraphQL API and Playground: http://localhost:4000
  • WebSocket Service: ws://localhost:4000/graphql
  • SQS Background Worker

GraphQL API

# Installation
$ brew install yarn

# Requires Authentication and Redis

$ cd api
$ source .env
$ yarn
$ yarn start

Sells Service

Endpoint: http://localhost:3000/v1

# Installation
$ brew tap aws/tap
$ brew install aws-sam-cli

# Requires Authentication

$ cd sells-service
$ am local start-api

Redis

# Installation
$ brew install redis

# Initialization
$ redis-server

Frontend

Endpoint: http://localhost:5000

$ cd frontend
$ source .env
$ yarn
$ yarn start

Running at Cloud

Frontend: https://www.vixcommerce.com.br

The checkout have been built with asyncronous architecture, therefore two actions to execute out of the app.

  1. Payment: It's posted to the mock gateway url and the app wait a postback to notify the customer and proceed to shipment
  2. Shipment: It's posted to the mock courier url and the app wait a postback to notify the customer that the product were received
  3. The workflow it's managed by AWS Step Functions, explained above
  4. All data it's load from websocket, you don't need refrash the page

The URLs:

Payment:

Shipment

Next page