packages
├── app [@popcorn/app] [next.js]
├── contracts [@popcorn/contracts] [solidity contracts]
├── scripts [@popcorn/scripts] [deploy scripts, etc]
├── utils [@popcorn/utils] [generic utils]
├── ui [@popcorn/ui] [ui components + storybook]
└── ... etc
-
Install packages
yarn install
-
Run dev (watch files and start up frontend)
yarn lerna run dev --parallel
-
Start storybook (optional):
yarn lerna run story --parallel
To run tests:
go to packages/contracts
yarn hardhat test
Deploy from packages/contracts
:
- compile:
yarn hardhat compile
- in one terminal:
yarn hardhat node
- in another terminal:
yarn hardhat run --network localhost scripts/deploy.js
Service | Location |
---|---|
Next.js Frontend | http://localhost:3000 |
Storybook | run: yarn lerna run story |
Command | Description |
---|---|
yarn install |
equivalent to npm install |
yarn add @org/packagename |
equivalent to npm install - will add to dependencies |
yarn add @org/packagename -D |
equivalent to npm install --save-dev - will add to devDependencies |
lerna dev --parallel |
run package.json "dev" script on all projects |
lerna run dev --scope=@popcorn/app |
run package.json "dev" script only on frontend package |
lerna run story |
start storybook |
lerna run test --parallel |
run tests |
Contributions are welcome! Please raise a pull request with your contributions.
Popcorn follows the Contributor Covenant Code of Conduct.