https://github.com/timothylong/angularjs-starter-kit
A basic AngularJS application, including routes, controllers, constants, HTML5 History API, and more...
https://github.com/timothylong/angularjs-starter-kit
angular starter-kit
Last synced: about 2 months ago
JSON representation
A basic AngularJS application, including routes, controllers, constants, HTML5 History API, and more...
- Host: GitHub
- URL: https://github.com/timothylong/angularjs-starter-kit
- Owner: timothylong
- Created: 2016-10-07T23:35:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-13T13:58:40.000Z (almost 9 years ago)
- Last Synced: 2025-01-16T09:56:30.776Z (over 1 year ago)
- Topics: angular, starter-kit
- Language: JavaScript
- Homepage:
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AngularJS Starter Kit
A basic introduction to AngularJS, including routes, controllers, constants, HTML5 History API, and page transitions.
## Goals
- Improve overall file and application organization
- Clearer documentation
- Probably even more things, but TBD
## Server Support
To get full support on pushState URLs, a server side rewrite is necessary. I use an Apache server, so here's the wizardry for that:
**Local**
~~~~
DocumentRoot "Path to project folder"
ServerName local.domain.com
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^ index.html [L]
~~~~
**Remote**
~~~~
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
~~~~