# Using aws-vault cli
$aws-vault exec <profile-name> -s -d 12h
# Using aws-cli
$ aws configure
# Select options
Services:
- GraphQL API and Playground: http://localhost:4000
- WebSocket Service: ws://localhost:4000/graphql
- SQS Background Worker
# Installation
$ brew install yarn
# Requires Authentication and Redis
$ cd api
$ source .env
$ yarn
$ yarn start
Endpoint: http://localhost:3000/v1
# Installation
$ brew tap aws/tap
$ brew install aws-sam-cli
# Requires Authentication
$ cd sells-service
$ am local start-api
# Installation
$ brew install redis
# Initialization
$ redis-server
Endpoint: http://localhost:5000
$ cd frontend
$ source .env
$ yarn
$ yarn start
Frontend: https://www.vixcommerce.com.br
The checkout have been built with asyncronous architecture, therefore two actions to execute out of the app.
- Payment: It's posted to the mock gateway url and the app wait a postback to notify the customer and proceed to shipment
- Shipment: It's posted to the mock courier url and the app wait a postback to notify the customer that the product were received
- The workflow it's managed by AWS Step Functions, explained above
- All data it's load from websocket, you don't need refrash the page
- Gateway: https://denilson.free.beeceptor.com/v1/payment
- Postback: https://sells-service.vixcommerce.com.br/v1/shipment/confirmation