create-dapp-stack
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

create-dapp-stack

Create dapp with no configuration

DApp Stack works on macOS, Windows, and Linux.

If something doesn’t work, please file an issue.

Quick Overview

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)

Get Started Immediately

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.

Creating an App

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:

npx

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)

npm

mkdir my-dapp
cd my-dapp
npm init dapp-stack
npm install

npm init <initializer> is available in npm 6+

Yarn

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:

npm run das start or yarn das start

Runs the app in development mode.

npm run das test or yarn das test

Runs the test.

Package Sidebar

Install

npm i create-dapp-stack

Weekly Downloads

11

Version

0.5.0

License

Apache-2.0

Unpacked Size

1.13 MB

Total Files

22

Last publish

Collaborators

  • john-solon