Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/aryanj-nyc/angular-cli-heroku-boilerplate
- Owner: AryanJ-NYC
- Created: 2017-04-20T17:10:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-15T00:01:52.000Z (about 4 years ago)
- Last Synced: 2024-10-11T08:07:05.093Z (27 days ago)
- Topics: angular, angular-2, angular-cli, angular2, angular6, angular6-boilerplate, angular6-seed, boilerplate, express, heroku, node, nodejs, template
- Language: TypeScript
- Homepage: https://angular-cli-heroku-boilerplate.herokuapp.com/
- Size: 177 KB
- Stars: 13
- Watchers: 4
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.