This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
generator-blockstack with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
If not already installed, install Node.js v10 or higher _(minimum required version is Node.js v8)_.
Create a new directory and
cd into it:
mkdir hello-blockstack cd hello-blockstack
Generate a Blockstack app, you can specify the framework.
|Framework||Use this command to install|
For additional options run
npx generator-blockstack --help.
Alternatively, global package installation can be used. Try this if running into problems:
npm install -g yo generator-blockstack yo blockstack
Start the development server:
npm run start
The single tests works for all generators:
npm run test
Within the repo directory, run
npm run test. This command will generate the variants of Blockstack apps
in folders called
.vue-gen-test. The test asserts
that all expected files were actually created. It also runs the
npm run test command within each app. For the
React, Webpack, and Vue generators,
npm run test currently builds the app, but that command can be
changed. (For a React app, the typical test command is
MIT © Blockstack