0.1.3 • Published 9 years ago
@ash-framework/cli v0.1.3
Cli for Ash framework
NPM
Usage
Getting started
Before you begin
Make sure you are running the latest version of node js (At least version 7)
Install
yarn
npm install --global yarnInstall 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/cliScaffold up a new project
mkdir my-awesome-project
cd my-awesome-project
ash initCreate your first route
ash generate route postsEdit 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 serverDiscover the release history by heading on over to the releases page.
These amazing people are maintaining this project:
These amazing people have contributed finances to this project:
Become a sponsor!
These amazing people have contributed code to this project:
Unless stated otherwise all works are:
and licensed under: