You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

create-aragon-app

Package Overview
Dependencies
Maintainers
10
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-aragon-app

Aragon command-line tool to create aragon apps

2.6.0
Source
npm
Version published
Weekly downloads
15
66.67%
Maintainers
10
Weekly downloads
 
Created
Source

Create Aragon App

Will set up an Aragon app project so you can start building your app from a functional boilerplate.

Command

create-aragon-app <app-name> [boilerplate]
  • app-name: The name or ENS domain name for your app in an aragonPM Registry (e.g. myapp or myapp.aragonpm.eth). If only the name is provided it will create your app on the default aragonpm.eth registry.

  • boilerplate: the Github repo name or alias for a boilerplate to set up your app. The currently available boilerplates are:

    • react: this boilerplate contains a very basic Counter app and a webapp for interacting with it. It showcases the end-to-end interaction with an Aragon app, from the contracts to the webapp.
    • buidler: (experimental) this boilerplates is similar to react using the buidler task runner with a custom plugin for developing Aragon apps.
    • bare: (deprecated) this boilerplate will just set up your app directory structure but contains no functional code.

Example

npx create-aragon-app myapp
cd myapp
npm start

Once finished, this will open http://localhost:3000/ in your default browser.

Note: npx comes with npm 5.2+ and higher. If you use npm 5.1 or earlier, you can't use npx. Instead, install create-aragon-app globally.

Tests

In the root of the repository, run:

npm run pretest

And then in packages/create-aragon-app, run:

npm test

To test only one file, try:

npm test -- <path to test file>

Local environment

Some commands like aragon run depend on a local dev environment (ipfs, ganache).

We set up this up during the pretest hook & tear it down during the posttest hook.

Pretest:

  • Start IPFS
  • Start Ganache
  • Create a test app

Posttest:

  • Stop IPFS
  • Stop Ganache
  • Delete the test app

Tip: Did a test fail and the local environment was cleaned up? Try npm run test:clean.

Keywords

create-aragon-app

FAQs

Package last updated on 03 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts