https://github.com/jasonmdev/angular-basic-directives
It demonstrates the use of directives to create new HTML element that you can customise.
https://github.com/jasonmdev/angular-basic-directives
Last synced: 6 months ago
JSON representation
It demonstrates the use of directives to create new HTML element that you can customise.
- Host: GitHub
- URL: https://github.com/jasonmdev/angular-basic-directives
- Owner: JasonMDev
- License: mit
- Created: 2016-09-09T20:35:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-14T20:40:16.000Z (almost 10 years ago)
- Last Synced: 2025-01-20T06:41:23.450Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://rocky-castle-98597.herokuapp.com/
- Size: 1.07 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# angular-basic-directives
A basic AngularJS app using [Express 4](http://expressjs.com/).
It demonstrates the use of directives to create new HTML element that you can customise. It is based upon the AngularJS lesson found at [codecademy](http://www.codecademy.com/).
The app is ready to deploy to [Heroku](http://www.heroku.com/). The Procfile, .env and server.js files have already been created, therefore only the following is required to get it deployed to [Heroku](http://www.heroku.com/):
Further details about the steps in deploying the app can be found at the following articles:
- [Deploying-nodejs on Heroku](https://devcenter.heroku.com/articles/deploying-nodejs)
## A. Prerequisites
It is assumed that you have the following installed:
- [Node.js](http://nodejs.org/) and npm installed.
- an existing Node.js app.
- a free Heroku account.
- the Heroku CLI and [Heroku Toolbelt](https://toolbelt.heroku.com/).
## B. Get it Locally
Fork the repo and the make a clone of the forked repo in your local machine.
## C. Check production on local
First check if you aren't relying in system-level packages.
You shouldn't get errors.
```sh
$ cd angular-basic-array
$ rm -rf node_modules; npm install --production
$ heroku local web
```
Your app should now be running on [localhost:5000](http://localhost:5000/).
If there is an error due a module not been found, it should show what dependency is missing from your package.json file.
## C. Check development on local
```sh
$ cd angular-basic-array
$ npm install
$ heroku local web
```
Your app should now be running on [localhost:5000](http://localhost:5000/).
You can also try out the npm server
```sh
$ cd angular-basic-array
$ npm start
```
Your app should now be running on [localhost:5000](http://localhost:5000/).
## D. Deploying to Heroku
```
$ heroku create
$ git push heroku master
$ heroku open
```
## Documentation
For more information about using Node.js on Heroku, see these Dev Center articles:
- [Deploying-nodejs on Heroku](https://devcenter.heroku.com/articles/deploying-nodejs)
- [Getting Started with Node.js on Heroku](https://devcenter.heroku.com/articles/getting-started-with-nodejs)
- [Heroku Node.js Support](https://devcenter.heroku.com/articles/nodejs-support)
- [Node.js on Heroku](https://devcenter.heroku.com/categories/nodejs)
- [Best Practices for Node.js Development](https://devcenter.heroku.com/articles/node-best-practices)
- [Using WebSockets on Heroku with Node.js](https://devcenter.heroku.com/articles/node-websockets)