https://github.com/mzvast/angularstart
angular boilerplate generated by angular-generator and add a simple api server forwarding.
https://github.com/mzvast/angularstart
Last synced: about 1 month ago
JSON representation
angular boilerplate generated by angular-generator and add a simple api server forwarding.
- Host: GitHub
- URL: https://github.com/mzvast/angularstart
- Owner: mzvast
- Created: 2016-05-10T14:59:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-12-18T23:13:16.000Z (about 4 years ago)
- Last Synced: 2025-01-08T17:24:09.450Z (12 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Build & development
Run `grunt` for building and `grunt serve` for preview.
## Testing
Running `grunt test` will run the unit tests with karma.
## Production
Run `node index.js` will serve the dist folder.
## Simple API server forward
###Development env:
Defined in Gruntfile.js
For testing purpose, run `grunt serve --api=qq`to set the API server to be www.qq.com
By default(without --api param), the api server is set to localhost:8080
To set any API server you want, just run `grunt serve --apiHost=hostname --apiPort=portnumber
###Production env:
Defined in index.js.Change variable apiForwardingUrl to set your host:port