Create dapp with no configuration
DApp Stack works on macOS, Windows, and Linux.
If something doesn’t work, please file an issue.
mkdir my-dapp
cd my-dapp
npx create-dapp-stack
npm install
npm run das start
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
You don’t need to install or configure tools like Geth or IPFS.
They are pre-configured and hidden so that you can focus on the code.
Just create a project, and you’re good to go.
You’ll need to have Node 8.10.0 or later on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to easily switch Node versions between different projects.
To create a new dapp, you may choose one of the following methods:
mkdir my-dapp
cd my-dapp
npx create-dapp-stack
npm install
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
mkdir my-dapp
cd my-dapp
npm init dapp-stack
npm install
npm init <initializer>
is available in npm 6+
mkdir my-dapp
cd my-dapp
yarn create dapp-stack
yarn install
yarn create
is available in Yarn 0.25+
It will create a directory called my-dapp
inside the current folder.
Inside that directory, it will generate the initial project structure:
my-dapp
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── environments
│ ├── local.js
│ └── test.js
└── contracts
├── src
| └── SimpleStorage.sol
└── tests
└── SimpleStorageTest.js
No configuration or complicated folder structures, just the files you need to build your dapp.
Inside the newly created project, you can run some built-in commands:
Runs the app in development mode.
Runs the test.