nerd-cli
v0.5.0
Published
NERD stack CLI
Downloads
2
Readme
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?
- Clones the sample app (Nerdy Movies) into a new directory
- Configures the connection to the back-end DocumentDB data source
- Creates and configures the necessary npm scripts
:two: Run the web app locally
nerd run
What does this do?
- Creates a production build of the web app (
npm run build
) - 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?
- Runs
npm run cleanup
on the project (via boiler-room-custodian)
:four: Publish to Azure App Service
nerd publish
What does this do?
- Creates the Azure Resource Group (if it doesn't exist)
- Creates and configures the Azure Web App in the Resource Group
- Ties the web app to a DocumentDB data source (could be the same or different from the dev collection)
- Configures local git deployment to the Azure Web App
- 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?
- 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