0.5.0 • Published 7 years ago

nerd-cli v0.5.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

NERD stack CLI

What is the NERD stack?

NERD is opinionated tooling for full-stack and cloud-hosted web applications. It lowers the barrier of entry for developing and deploying an industry-proven web stack.

  • :rocket: Node.js - server runtime
  • :earth_americas: Express - node web framework
  • :crown: React - front-end library
  • :trophy: DocumentDB - persistent NoSQL data storage

What is the CLI for?

The CLI is the end-user tool for scaffolding the necessary components of the entire web application. For all intents and purposes, the CLI is what the developer will use to get up and running with development as well as publishing to Azure.

Installation

npm install -g nerd-cli

Usage

  Usage: nerd [options] [command]


  Commands:

    install [dir]  install the base app
    run            run the app (local default)
    cleanup        remove all unnecessary sample code
    publish        publish to Azure
    regions        list all available Azure regions

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

:one: Create a new web app

nerd install <app_name>

What does this do? 1. Clones the sample app (Nerdy Movies) into a new directory 2. Configures the connection to the back-end DocumentDB data source 3. Creates and configures the necessary npm scripts

:two: Run the web app locally

nerd run

What does this do? 1. Creates a production build of the web app (npm run build) 2. Runs the platform-appropriate start script (npm run start-local[-win])

:three: Cleanup the sample app code

The sample app is an illustration/demo of a running NERD app, but when you are ready to start you app development nerd cleanup will remove the unnecessary code from the project

nerd cleanup

What does this do? 1. Runs npm run cleanup on the project (via boiler-room-custodian)

:four: Publish to Azure App Service

nerd publish

What does this do? 1. Creates the Azure Resource Group (if it doesn't exist) 2. Creates and configures the Azure Web App in the Resource Group 3. Ties the web app to a DocumentDB data source (could be the same or different from the dev collection) 4. Configures local git deployment to the Azure Web App 5. Configures the upstream repo on the local git repo

:bulb: Note: this just sets up the Azure resources for hosting and the deployment functionality. It is up to the developer to run git push azure master to deploy the web app to Azure App Service

List Azure regions

nerd regions

What does this do? 1. Makes a request and displays the Azure regions available

:bug: Bugs, feature requests, questions

Please open up an issue on this repo for a team member (or community member!) to take action on

0.5.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

8 years ago