This project acts as a container for all individual uqlibrary applications.
Run these commands in your Terminal to get a local server working
(note the first one must be run as super user)
sudo npm install -g gulp bower
npm install
bower install
- Follow the Polymer style guide-lines
- Run
gulp serve
to run a local environment
- Follow requirements from uqlibrary-pages
- IMS script should be included in the header to force on-campus users to login to be able to access content on S3 and Internet
<!-- force IMS login for on-campus users -->
<script src="//www.library.uq.edu.au/js/ims.js"></script>
- Clone uqlibrary-starter-kit
- Make sure the element contains the paper-toolbar
- Make sure the element has a "standAlone" attribute and a "_toggleDrawerPanel" function
- When the App is ready, tag a release, eg git tag -a v1.0.0 -m 'First release'
- In uqlibrary-mylibrary, bower install the element (eg. bower install uqlibrary/uqlibrary-starter-kit#v1.0.0) (Note that bower_components subfolders are no longer used and bower components are build into the parent directory, above each project)
- Add the element in app/elements/elements.html
- Add a section containing the element in app/index.html
- Add a menu item in uqlibrary-api (applications HTML)
- Add a route via PageJS in app/elements/routing.html
- gulp test:local
- gulp test:remote
- Nightwatch is also run on Codeship for deployment testing. No gulp interface provided
- Add dev-app.library.uq.edu.au to your /etc/hosts or equivalent file
- Comment out the cookies which control mock data in demo.html (or create a new file)
- Run the gulp task
gulp demo
- If you still have the mock cookies in your browser, delete them via your browser.
- Use the Masquerading function at app.library.uq.edu.au/v1/home to masquerade as a user with data you are interested in.
- Return to your demo page and you should be getting live data.
- Make sure MyLibrary functions properly when using
gulp serve:dist
- Before committing to master, run
gulp test
- Any commits to master are automatically deployed to app.library
- To deploy a feature branch create a deployment pipe line in codeship, feature branch will be deployed to app.library/[feature branch]/mylibrary
- Any commits to production will go live on the main UQ Library website (http://www.library.uq.edu.au/mylibrary)