Skip to content

Latest commit

 

History

History
192 lines (171 loc) · 11.3 KB

lab-descriptor.org

File metadata and controls

192 lines (171 loc) · 11.3 KB

Lab Descriptor

Introduction

Lab Descriptor is a json file that contains information about generation, and deployment of lab pages and related experiments.

Lab Descriptor Structure

FieldSub FieldTypeDescription
boradAreanameStringBroad Area (Domain) name
linkURLLink to the page on vlab.co.in that
lists all labs in the domain.
baseUrlURLA URL has host and url-path. baseUrl
contains the host part of the lab.
labStringLab name used in google analytics.
lab_display_nameStringLab name as displayed on lab pages.
deployLabBooleanShould the lab be deployed?
phasenumberVirtual Labs Phase
collegeNameStringName of authoring college.
introductionStringContents of the Introduction.html page.
experimentsList ExperimentList of Experiments. Each item in this list
is an Experiment object. Experiment object
is described here. This list is used for
populating the List Of Experiments.html page
and for deployment of experiments.
experiment-sectionssect-nameStringThis is required when list of experiments is a
nested list. (ex: Data Structures Lab). Otherwise
just use experiments and ommit
experiment-sections.
experimentsList ExperimentList of experiments in a section.
targetAudienceUGList StringList of UG degrees, that the lab is targeted
towards.
PGList StringList of PG degrees that the lab is targeted
towards.
objective [optional]StringContent for Objective.html page. This field is
optional. If this is omitted then Objective.html
page is not generated.
courseAlignmentdescriptionStringContent for Course Alignment.html page.
universitiesList StringContent for Course Alignment.html page.

Experiment

Each experiment record should contain the following information:

FieldTypeSourceDescription
nameStringHosting RequestName of the Experiment as displayed on
the Experiment pages.
short-nameStringHosting EngineerUnique short name for the experiment.
Used in the url path for the experiment.
repoURLHosting RequestURL of the remote repository for the
experiment sources.
tagStringHosting RequestTag of the repository to be used.
deployBooleanHosting EngineerShould the experiment be deployed.

The information comes from two sources: Hosting Request and Hosting Engineer. The hosting engineer has to provide a unique short-name for the experiment which is used for the experiment deployment path. All other values should be taken from the Hosting Request.

Example

   {
       "name": "Performance Characteristics of Centrifugal Pump",
       "short-name": "centrifugal-pump",
       "repo": "http://vlabs.ac.in/gitlab/central-hosting/fluid/centrifugal-pump-nitk.git",
       "tag": "v1.0.1",
	 "deploy": true
   }

Empty Lab descriptor

Following is a lab descriptor file which has not been filled. Use this as a starting point to create the lab descriptor for your lab.

   {
       "broadArea": {
           "name": "",
           "link": ""
       },
	"lab": "",
	"lab_display_name": "",
       "deployLab": ,
	"phase": ,
	"collegeName": "",
       "baseUrl": "",
       "introduction": "",
       "experiments": [],
       "targetAudience": {
           "UG": [],
           "PG": []
       },
       "objective": "",
       "courseAlignment": {
           "description": "",
           "universities": []
       }
   }

Sample Lab Descriptor

Following lab descriptor is used for testing.

   {
       "broadArea": {
           "name": "Civil Engineering",
           "link": "http://vlab.co.in/broad-area-civil-engineering"
       },
       "lab": "Fluid Machinery",
	"lab_display_name": "Fluid Machinery",
	"deployLab":true,
       "phase": 3,
       "collegeName": "NITS",
       "baseUrl": "http://localhost",
       "introduction": "Welcome to fluid macninery lab!",
       "experiments": [
           {
               "name": "Performance Characteristics of Centrifugal Pump",
               "short-name": "centrifugal-pump",
               "repo": "http://vlabs.iitb.ac.in/gitlab/vlabs-dev-central-hosting/fluid-machinery-nitk/performance-characteristics-centrifugal-pump-nitk.git",
               "tag": "v1.0.0",
               "deploy": true
           },
           {
               "name": "Performance Characteristics of Hydraulic Ram",
               "short-name": "hydraulic-ram",
               "repo": "http://vlabs.iitb.ac.in/gitlab/vlabs-dev-central-hosting/fluid-machinery-nitk/performance-characteristics-hydraulic-ram-nitk.git",
               "tag": "v1.0.0",
               "deploy": true
           }
       ],
       "targetAudience": {
           "UG": [
               "B. Tech./ B.E in Civil Engineering"
           ],
           "PG": [
               "MS/Ph. D. Beginners in Civil Engineering and related topics"
           ]
       },
       "objective": "Hello World.",
       "courseAlignment": {
           "description": "course are listed here:",
           "universities": [
               "Visvesvaraya Technological University Karnataka",
               "National Institute of Technology Karnataka Karnataka",
               "Anna University Tamil Nadu",
               "SRM University Delhi - NCR Sonepat Haryana",
               "University of Kerala Kerala",
               "APJ Abdul Kalam Technological University Kerala",
               "CUSAT Kerala"
           ]
       }
   }