๐ต๏ธ Find more boilerplates using GitHub | โจ Official boilerplates
โ ๏ธ This boilerplate has been integrated intoaragon-react-boilerplate
and is deprecated.
Buidler + React boilerplate for Aragon applications.
This boilerplate includes a fully working example app, complete with a background worker and a front-end in React (with Aragon UI).
To setup use the command create-aragon-app
:
npx create-aragon-app <app-name> buidler
This boilerplate has the following structure:
root
โโโ app
โ โโโ src
โ โโโ package.json
โโโ contracts
โ โโโ CounterApp.sol
โโโ test
โโโ arapp.json
โโโ manifest.json
โโโ buidler.config.js
โโโ package.json
- app: Frontend folder. Completely encapsulated, has its own package.json and dependencies.
- src: Source files.
- package.json: Frontend npm configuration file.
- contracts: Smart Constracts folder.
CounterApp.sol
: Aragon app contract example.
- test: Tests folder.
- arapp.json: Aragon configuration file. Includes Aragon-specific metadata for your app.
- manifest.json: Aragon configuration file. Includes web-specific configurations.
- buidler.config.js: Buidler configuration file.
- package.json: Main npm configuration file.
To run the app in a browser with front end plus back end hot reloading, simply run npm start
.
- postinstall: Runs after installing dependencies.
- build-app: Installs front end project (app/) dependencies.
- start Runs your app inside a DAO.
- compile: Compiles the smart contracts.
- test: Runs tests for the contracts.
- @aragon/os: Aragon interfaces.
- @aragon/api: Wrapper for Aragon application RPC.
- @aragon/ui: Aragon UI components (in React).
- @aragon/buidler-aragon: Aragon Buidler plugin.