- Install
nvm
(Node Version Manager) cd
to the project directory and execute the following:nvm install nvm use npm install
Set up a free node on Moralis.
NOTE: Free nodes will suspend after 3 days and terminate 24 days after that.
- Click Start for Free on the Moralis website
- Click Sign up if you don't have an account
- Click Create New Dapp
- Select Environment: Mainnet
- Select Network: Eth
- Click Proceed
- Select Region: New York (or close to you)
- Click Proceed
- Name your Dapp something like 'CityDAO Token Query'
- Click Create Your Dapp
- When the Dapp is created, click Settings
- You will need the Dapp URL and Application ID for the following step
Copy example.env
to .env
and fill in the values
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 ESLint. 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 build
- Compile the code with
npm run build
- Execute the CLI with
bin/token-query-tools.sh ...
- Get help with
bin/token-query-tools.sh --help
orbin/token-query-tools.sh <command> --help