Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aryanj-nyc/angular-cli-heroku-boilerplate

The bare minimum starter code that allows users to easily deploy Angular CLI projects powered by Node and Express to Heroku.
https://github.com/aryanj-nyc/angular-cli-heroku-boilerplate

angular angular-2 angular-cli angular2 angular6 angular6-boilerplate angular6-seed boilerplate express heroku node nodejs template

Last synced: 27 days ago
JSON representation

The bare minimum starter code that allows users to easily deploy Angular CLI projects powered by Node and Express to Heroku.

Awesome Lists containing this project

README

        

# Angular CLI Heroku Boilerplate
This README outlines how to quickly deploy your Angular CLI project to Heroku.

## Prerequisites
* [Git](http://git-scm.com/)
* [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)

## Installation
* `git clone https://github.com/AryanJ-NYC/angular-cli-heroku-boilerplate.git `
* `cd `
* `npm install`

## Running
### Running locally
* `npm start`
* Visit your app at [http://localhost:8080](http://localhost:8080)
* This should be similar to my [Heroku site](https://angular-cli-heroku-boilerplate.herokuapp.com/)

### Deploying to Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

**OR**

* Install [Homebrew](https://brew.sh/)
* `brew install heroku`
* `heroku create `
* `git push heroku master`
* `heroku open`

## Changes Made to Original Angular CLI code

* Added [`server.js`](https://github.com/AryanJ-NYC/angular-cli-heroku-boilerplate/blob/master/server.js)
* Added `@angular/cli` to dev-dependencies in [`package.json`](https://github.com/AryanJ-NYC/angular-cli-heroku-boilerplate/blob/master/package.json)
* Added `@angular/compiler-cli` to dev-dependencies in [`package.json`](https://github.com/AryanJ-NYC/angular-cli-heroku-boilerplate/blob/master/package.json)
* Added `postinstall` script to [`package.json`](https://github.com/AryanJ-NYC/angular-cli-heroku-boilerplate/blob/master/package.json) that builds app for production deployment
* Edited `start` script in [`package.json`](https://github.com/AryanJ-NYC/angular-cli-heroku-boilerplate/blob/master/package.json) to launch run [`server.js`](https://github.com/AryanJ-NYC/angular-cli-heroku-boilerplate/blob/master/server.js) instead of Angular CLI server

## Support
Like this boilerplate? Support my developments.

[![Support via PayPal](https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg)](https://www.paypal.me/AryanJ)

Please star this repository to help it gain exposure.