Skip to content

An e-commerce project used to explore event-based APIs and microservices.

Notifications You must be signed in to change notification settings

tgillus/ecommerce

Repository files navigation

E-Commerce

This project serves as a playground to explore event-based APIs and microservices.

This project is designed for deployment to Amazon Web Services (AWS) cloud. The AWS Cloud Development Kit (CDK) is used to create all of the necessary AWS cloud infrastructure to run the project.

Prerequisites

Ensure the following requirements are met prior to usage:

Setup

  1. Clone the repository:
git clone git@github.com:tgillus/ecommerce.git
  1. Install the project dependencies:
cd ecommerce
npm install
  1. Create a .env in the root of the project based on the .env.example file and add values for each of the environment variables:
cp .env.example .env

The environment variables have place holder values that need to be replaced with actual values.

NOTE: The .env file can be used to store sensitive information that should be kept secret. Therefore do not commit the .env file to source control.

Commands

Command Description
npm run build Check for TypeScript errors.
npm run watch Watch for changes and check for TypeScript errors.
npm run test Execute unit tests.
npm run cdk deploy Deploy a CDK stack to AWS.
npm run cdk diff Compare a deployed stack with current state.
npm run cdk destroy Delete a CDK stack (and its associated resources) from AWS.
npm run cdk synth Emit synethesize CloudFormation template for a CDK stack.
npm run format Format source files.
npm run lint Run linter against source files.
npm run lint:fix Lint source files and fix issues disovered by the linter.

Command Examples

Typecheck Codebase

npm run build

Execute Unit Tests

npm run test

Deploy AWS Resources

npm run cdk deploy -- --all

Execute Integration Tests

npm run test:e2e

Delete AWS Resources

npm run cdk destroy -- --all --force

About

An e-commerce project used to explore event-based APIs and microservices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published