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.
- 🚀 Node.js - server runtime
- 🌎 Express - node web framework
- 👑 React - front-end library
- 🏆 DocumentDB - persistent NoSQL data storage
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.
npm install -g nerd-cli
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
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
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]
)
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)
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
💡 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
nerd regions
What does this do?
- Makes a request and displays the Azure regions available
Please open up an issue on this repo for a team member (or community member!) to take action on