@citydao/react-ethers v0.0.1
React Ethers Library
Setup
Node
- Install
nvm(Node Version Manager) cdto the project directory and execute the following:nvm install nvm use npm install
IDE Setup
This project uses EditorConfig for IDE configuration.
See .editorconfig for settings.
Many popular IDEs and editors support this out of the box or with a plugin.
AWS
- Install AWS CLI for your computer
- Setup AWS CLI with your credentials
- Add a configuration for
serverlessin your AWS config files
Serverless
This project uses Serverless to deploy. Install serverless as a global:
npm install -g serverlessChange the bucket to be used for logs in the custom.logs.bucket property in serverless.yml.
Domain Name
- Register a domain name in AWS Route53
- Change the base
custom.baseDomainNameproperty inserverless.ymlto the zone name, egwhatever.com
Development
Running the Local Server
npm run server:developmentThe server runs at http://localhost:5001/.
The port can be changed by setting the environment variable WEBPACK_SERVER_PORT to an open port.
Prettier
This project uses Prettier, so please run it before checking in:
npm run prettySee .prettierrc for settings.
Some IDEs and editors have plugins for running Prettier.
Linting
This project uses ESLint. Check linting before checking in:
npm run lintSee tslint.json for settings.
Many IDEs and editors support TSLint.
Testing
This project uses Jest for testing. Run tests before checking in.
npm testBuilding
Development
npm run build:developmentProduction
npm run buildDeploy
NOTE: AWS Certificate validation requires a manual step during the first deployment.
When the following is displayed, go to the AWS Certificate Manager console for the new domain name and create the record in Route 53:
CloudFormation - CREATE_IN_PROGRESS - AWS::CertificateManager::Certificate - WebAppCertificate
Test
npm run deploy:testProduction
npm run deployTroubleshooting
If there are errors when deploying, check the Cloudformation logs for the stack.
3 years ago