- Install
nvm
(Node Version Manager) cd
to the project directory and execute the following:nvm install nvm use npm install
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.
This project uses Prettier, so please run it before checking in:
npm run pretty
See .prettierrc
for settings.
Some IDEs and editors have plugins for running Prettier.
This project uses TSLint. Check linting before checking in:
npm run lint
See tslint.json
for settings.
Many IDEs and editors support TSLint.
This project uses Jest for testing. Run tests before checking in.
npm test
npm run test:integration
npm run build
This isn't necessary for local deployment, but eventually you'll want to test on a semi-real test network.
-
Create an account at Infura
-
Create a new mnemonic with the following command:
npx mnemonics
-
Create a secrets file at
secrets.json
with the following structure:{ "mnemonic": "some great words ...", "mnemonicProd": "some better words ...", "projectId": "12345abcde", "projectSecret": "abcde12345" }
npx oz create