UI-Documentation for the ILIAS-Open-Source Project
- Install npm by installing node.js from http://nodejs.org/ (root permission might be needed)
- Install bower globally 'npm install -g bower' (root permission might be needed)
- Install grunt globally 'npm install -g grunt-cli' (root permission might be needed)
- Download the repository
- Install npm modules: 'npm install' (installs the dependencies listed in package.json)
- Install bower dependencies 'bower install' (installs the libs listed in bower.json into the directory from .bowerrc)
- Create the index.html file and start a server by typing executing 'grunt' (executes the tasks from Gruntfile.js)
- View in browser at http://localhost:8080
Define the organization of your UI-Kitchen-Sink in 'app/data/categories.json' according to the following structure:
{
"categories": [{
"title": "Title of first category",
"id":"idOfFirstCategoryInLowerCamelCase",
"subCategories": [
{
"title": "Title of first sub category",
"id":"idOfFirstSubCategoryInLowerCamelCase",
"itemGroups": [
{
"title": "Titel of first item group",
"id":"idOfItemGroupInLowerCamelCase"
},
{
... (more item groups)
},
]
},
{
... (more sub categories)
}
]
},
{
... (more categories)
}
]
}
- Run 'grunt'
- Folders and examples of the json file and html file for the first entry in each item group will be created automatically
- Checkout 'http://localhost:8080' to see the changes made on the UI-Kitchen-Sink
Folder that are not listed anymore in 'app/data/categories.json' are no longer displayed in the UI-Kitchen-Sink. You can remove them by executing 'grunt buildEntries --deleteFolders=true'
- Create a someEntryName.html in the according folder (e.g.: 'app/data/someCategory/someSubCategory/someItemGroup/')
- Run 'grunt' to automatically create the according json file.
- Change to meta data in the json file.
- Checkout 'http://localhost:8080' to see the changes made on the UI-Kitchen-Sink