Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 1.06 KB

README.md

File metadata and controls

70 lines (53 loc) · 1.06 KB

ride-or-die

Setup

Lerna setup

$ npm install
$ npx lerna bootstrap
$ npx lerna run test #(run twice for whatever reason)

Database setup

$ cd packages/api
$ createdb ride_or_die
$ createdb ride_or_die_test

Run tests

Run individual project tests

$ cd packages/<project>
$ npm run test

Run all tests from root

$ npx lerna run test

Run apps

Run API server

$ cd packages/api
$ npm run server

Run frontend app

$ cd packages/app
$ npm run start

Forked testchain

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.