Sign Up for Free

RunKit +

Try any Node.js package right in your browser

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 @ash-framework/cli with all npm packages installed. Try it out:

var cli = require("@ash-framework/cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@ash-framework/cli v0.1.3

Cli for Ash framework

@ash-framework/cli

The Media Suite

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status

Cli for Ash framework

Install

NPM

  • Install: npm install --global @ash-framework/cli
  • Executable: ash
  • Usage

    Getting started

    Before you begin

    1. Make sure you are running the latest version of node js (At least version 7)

    2. Install yarn

    npm install --global yarn
    

    Install cli

    You can install the Ash cli either via yarn or npm

    // option 1. via yarn
    yarn global add @ash-framework/cli
    
    // option 2. via npm
    npm install --global @ash-framework/cli
    

    Scaffold up a new project

    mkdir my-awesome-project
    cd my-awesome-project
    ash init
    

    Create your first route

    ash generate route posts
    

    Edit your app/routes/posts.js route file to return something from the provided model hook

    // app/routes/posts.js
    import Ash from '@ash-framework/ash'
    
    export default class PostsRoute extends Ash.Route {
      model () {
        return [
          {id: 1, title: 'My post 1', description: 'WoW'},
          {id: 2, title: 'My post 2', description: 'WoWsErS'}
        ]
      }
    }
    

    Run the server

    ash server
    

    History

    Discover the release history by heading on over to the releases page.

    Backers

    Maintainers

    These amazing people are maintaining this project:

    • Richard Walker digitalsadhu@gmail.com

    Sponsors

    These amazing people have contributed finances to this project:

    Become a sponsor!

    Contributors

    These amazing people have contributed code to this project:

    License

    Unless stated otherwise all works are:

    and licensed under:

    RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
    Sign Up for Free