Skip to content
This repository has been archived by the owner on Jul 13, 2019. It is now read-only.

Latest commit

 

History

History
83 lines (62 loc) · 3.26 KB

README.md

File metadata and controls

83 lines (62 loc) · 3.26 KB

create-nos-dapp

This is a CLI tool to generate a dApp project for the nOS platform, in your favorite frontend technology.

Purpose

The goal of this project is to provide a quickstart for creating nOS dApps with various frontend technologies already installed and configured to work with the nOS platform.

Installation

Before we start, we want to make sure npm is installed via a version manager. To avoid permission issues on different OS, we suggest using nvm. You can follow the install instructions here.

After successfully installing npm, we need to install the npm package. This will make the create-nos-dapp command available in your command prompt. You can install the npm package by executing one of the following commands

# Using yarn
yarn global add @nosplatform/create-nos-dapp

# Using npm
npm i -g @nosplatform/create-nos-dapp

Usage

Direct usage

At this point the create-nos-dapp command should be available. To create a dApp for nOS, simply open up your command prompt and execute:

create-nos-dapp

It will now ask you to choose a project template and what name you'd like to give it. The CLI-tool will create the project in the current working directory.

Usage with flags

If you'd like to get started even faster - you could also pass some arguments to the create-nos-dapp.

usage: create-nos-dapp [-h] [-v] [-t TYPE] [-n NAME]

create-nos-dapp

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  -t TYPE, --type TYPE  Template type (react/vanilla/vue)
  -n NAME, --name NAME  Project name, f.e. my-nos-dapp

Resources to get started with the generated project

API Documentation

Getting started with the project templates