This project is generated with yo angular generator version 0.12.1.
node.js grunt grunt-cli bower yo generator-karma generator-angular (global)
YO stuff
npm install (sudo if needed) bower install
Run grunt for building and grunt serve for preview.
There are 2 types of dashboard available: student and teacher.
The constant defining the type is located in app/scripts/services/dashboard_type.js
The constant values are either teacher or student.
Running grunt test will run the unit tests with karma.
Configure apiLocation if needed in app/scripts/services/api_location.js
Please make sure that location of the service is configured, in case of no
configuration provided it will be assumed to reside at the same URL within the
api catalog.
Run grunt build and get the package from dist
Make sure to place the files to be served
Make sure that the API is provided at the configured location or within the
catalog called api
API code is located in standalone repository
The default view will hint that the tool works with /course/:id or #/course/:id/student/:email,
thus the teacher URL would look like #/course/:id
the student URL would look like #/course/:id/student/:email
Releasing consists on two main steps: building corresponding distributives and releasing new version on GitHub. The latter one also includes uploading these distributives there.
- Change version in bower.json, then commit and push
- Make sure to have development package cloned and clean (NB! Build process uses local files)
- Make changes in accordance with the built system: student or teacher dashboardType, BASE tag value, apiLocation value and anything else
- BASE tag value in index.html should be set to /lib/la/StudentDashboard/ for student Dashboard
- BASE tag value in index.html should be set to /lib/la/TeacherDashboard/ for teacher Dashboard
- Remove ACE script from index.html file (http://platform.europeanmoocs.eu/lib/ace/assets/js/ace.min.js)
- Trigger grunt build task for student and teacher Dashboards
- Make sure that dashboardType is correct
- Create a .zip archive from created dist/ catalog
- Make sure to rename the catalog to match current type: DashboardStudentDist or DashboardTeacherDist
- Archive should have the same name.
- Create corresponding release tag in GitHub and upload these archives there
- A tag got added. Please set it to the correct path that should be used in your setup, default value is domain root /.
- Get suitable package (please make sure to use either teacher or student one)
- Extract the code and place that to a suitable location
- Make sure to set the base to the correct one in the index.html
- Make sure to check out the sctiprs/scripts.*.js file and set the apiLocation constant value to a correct path or URL.
- Open the dashboard and see it all is working well (pay attention to any errors in the console or just error messages returned by API)