Skip to content

Latest commit

 

History

History

Overview

All of the following documentation assumes that you are running on a UNIX based environment. If you do not have a UNIX based command execution environment, you can also use AWS Cloud9.

Quick Start

Install Dependencies

To get started run the following command in the root of this repository to install the required dependencies.

npm install

Set your AWS profile

The AWS profile currently active on your shell will be used to deploy the infrastructure, if no profile is specified, the default profile will be used.

To specify a profile other than default to be used, run the following command replacing my-profile with your profile name.

export AWS_PROFILE='my-profile'

Run the deploy script

Run the deploy script and follow any prompts by running the following command.

./deploy.js

Cleaning Up

⚠️ The peer node used in this example can cost as much as $0.174 per hour depending on your region. It is recommended to remove these resources once they are no longer being used.

To remove all of the resources created from this example, run the following command from the root of the repository.

npm run cleanup

This will use CDK to remove the infrastructure we deployed, as well as remove the deploy-settings.json file created by the deploy script.

Step by Step Instructions

  1. Creating a node for Ethereum Testnet: Goerli
  2. Deploy Contract
  3. Deploy API
  4. Testing the Front End (local)
  5. Front End Deployment (optional)

Troubleshooting

See Troubleshooting CDK Errors for troubleshooting details.