-
Notifications
You must be signed in to change notification settings - Fork 5
Development
@veer11997 Thanks for your interest!
This wiki is initially based on the current development.md file, plus some real quick exercise while putting together these notes.
In a nutshell, a local development environment can be set up as follows:
Core requirements: NodeJs and Gulp
git clone https://github.com/mmisw/orr-portal.git
cd orr-portal
npm install
npm install --global gulp-cli
The frontend configurability includes settings to indicate the particular ORR repository to interact with.
Assuming the ESIP COR instance:
Create src/app/js/local.config.js
with (these are some of the possible settings):
appConfig.branding.logo = "http://cor.esipfed.org/esip_cor_logo.png";
appConfig.branding.title = "ESIP Community Ontology Repository";
appConfig.branding.contactUs = "http://esipfed.org/contact";
appConfig.orront.sparqlEndpoint = "http://cor.esipfed.org/sparql";
appConfig.orront.rest = "http://cor.esipfed.org/ont";
appConfig.portal.mainPage = undefined;
which will make your local orr-portal get information from the ESIP COR instance of the ORR.
Finally:
gulp dev
should open http://localhost:9001/src/app/indexdev.html in your browser.
You can then make changes in the code using your favorite IDE or text editor, and reload that page to see the changes reflected.