Git Product home page Git Product logo

blockstack-app-generator's Introduction

Blockstack App Generator CircleCI NPM version Slack

Installation

  1. If not already installed, install Node.js v10 or higher (minimum required version is Node.js v8).

  2. Create a new directory and cd into it:

    mkdir hello-blockstack
    cd hello-blockstack
  3. Generate a Blockstack app, you can specify the framework.

    Framework Use this command to install
    Plain Javascript npx generator-blockstack --plain
    React npx generator-blockstack --react
    Vue npx generator-blockstack --vue

At least for React, you will have to install Stacks 2.0 transactions and Connect using:

```bash
npm install @blockstack/stacks-transactions
npm install --save @blockstack/connect
```

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
> ```
  1. Start the development server:

    npm run start

Testing the generated app

The single tests works for all generators:

npm run test

Testing the generator project

Within the repo directory, run npm run test. This command will generate the variants of Blockstack apps in folders called .app-gen-test, .webpack-gen-test, .react-gen-test, and .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 react-scripts test.)

License

MIT © Blockstack

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.