Skip to content

ecmendenhall/ride-or-die

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published