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 co-koa-cli with all npm packages installed. Try it out:

var coKoaCli = require("co-koa-cli")

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

co-koa-cli v1.21.2

A Command Line Interface for installing and managine Co.Koa applications

Build Status Coverage Status Greenkeeper badge Test for Vulnerabilities

Co.Koa header

co-koa-cli

A Command Line Interface for installing and managing Co.Koa MVC applications.

Installation of co-koa-cli co-koa-cli is available to install on NPM: npm i co-koa-cli -g

Installing a new Co.Koa project on your system with the co-koa-cli installed, in terminal, simply navigate to a desired directory in terminal and type: co-koa-cli --create

fill in a few details (these can be changed afterwards by modifying your project's package.json) once installation is finished, type npm install to download the project's core dependencies.

That's it, you're all setup!

note: By default, Co.Koa ships with the co-koa-mongoose-plugin. This will use 'mongodb://localhost:27017/coKoa' as its connection string. for more information on this and other aspects of co-koa and Mongo, see the links below:

Useful Links

CLI Options

  --version                Show version number                         [boolean]

  --create                 build a new Co.Koa application in your current
                           working directory or, if supplied, an absolute
                           directory. Ensure you have permission to write!
                                                                        [string]

  --createController       creates a Co.Koa Controller. Must be supplied with a
                           name (without the word "Controller" appended to it).
                                                                        [string]

  --createIntegrationTest  creates a Co.Koa Jest Integration Test. Must be
                           supplied with a name.                        [string]

  --createModel            creates a Co.Koa Model. Must be supplied with a name.
                                                                        [string]

  --createService          creates a Co.Koa Service. Must be supplied with a
                           name (without the word "Service" appended to it).
                                                                        [string]

  --createUnitTest         creates a Co.Koa Jest Unit Test. Must be supplied
                           with a name.                                 [string]

  --help, -h               Show help                                   [boolean]

for more information on Co.Koa and its installation, navigate to the Co.Koa github page.

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