https://github.com/ajayns/ngexp-heroku-deploy
A template of an Angular CLI - Express app to be deployed to Heroku
https://github.com/ajayns/ngexp-heroku-deploy
angular-cli angular4 heroku mean-stack
Last synced: about 1 month ago
JSON representation
A template of an Angular CLI - Express app to be deployed to Heroku
- Host: GitHub
- URL: https://github.com/ajayns/ngexp-heroku-deploy
- Owner: ajayns
- Created: 2017-05-22T05:19:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-22T05:30:46.000Z (about 9 years ago)
- Last Synced: 2025-08-20T23:41:05.615Z (10 months ago)
- Topics: angular-cli, angular4, heroku, mean-stack
- Language: TypeScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ngApp-Heroku
App to demostrate deploying an Angular Express WebApp into Heroku.
## Set up.
Make sure you have angular cli and heroku cli installed.
```bash
$ npm install -g angular-cli
$ npm install -g heroku
```
Clone the repo
```bash
$ git clone https://github.com/ajayns/ng2-mean.git
$ cd ng2-mean
```
Install dependencies
```bash
$ npm install
```
Test locally
```bash
$ ng build && node server.js
```
Configure Heroku
```bash
$ heroku login
$ heroku create
```
Deploy the app, ensure one instance is running
```bash
$ git push heroku heroku:master
$ heroku ps:scale web=1
```
Open the app in browser from your heroku id or just type
```bash
$ heroku open
```