$ npm install
$ npx lerna bootstrap
$ npx lerna run test #(run twice for whatever reason)
$ cd packages/api
$ createdb ride_or_die
$ createdb ride_or_die_test
$ cd packages/<project>
$ npm run test
$ npx lerna run test
$ cd packages/api
$ npm run server
$ cd packages/app
$ npm run start
Get an Alchemy API key and add it to .env
. (See .env.example
for an example .env
file)
export ALCHEMY_API_KEY=<API Key>
Source .env
to load the API key into your shell context:
source .env
Run a local hardhat network node:
$ npx hardhat node --network fork
Deploy the contracts:
$ npx hardhat run --network fork scripts/deploy.ts
The deployment script will print addresses for each deployed contract.