Pure front-end implementation, all API interaction are mocked using angular-mocks. The server folder is just a placeholder here, you can use any back-end technique.
Preview
Check out a demo site generated by this generator.
The dome site is a pure front-end implementation, so you can use any email/password to login, see mock file for detail. It is hosted on Github pages, no back-end support, so we use # style URL.
npm install -g yo
npm install -g generator-aio-angular
yo aio-angular
How to do development
Many files(prefixed by _) under app/templates folder include <%= appNmae %> tag which needs to be replaced by Yeoman, it's not very convenient to do development under app/templates folder. That's the reason why I add a script called change-env.js.
make app/templates ready for developent:
npm run-script env dev
This will rename all files prefixed by _ to normal name and replace the placeholder tag to normal content.
请发表评论