GithubHelp home page GithubHelp logo

kuceram / modelcatalogueplugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metadataconsulting/modelcatalogueplugin

0.0 2.0 0.0 30.58 MB

Model Catalogue Grails Plugin

License: Other

Groovy 25.40% CoffeeScript 10.00% JavaScript 63.31% HTML 0.07% CSS 0.64% Batchfile 0.36% Java 0.13% Shell 0.09%

modelcatalogueplugin's Introduction

Model Catalogue Grails Plugin

Build Status [![Gitter](https://badges.gitter.im/Join Chat.svg)] (https://gitter.im/MetadataRegistry/ModelCataloguePlugin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

To use the model catalogue core plugin in your grails app, include the following in your BuildConfig.groovy:

repositories {	 
    mavenRepo 'http://dl.bintray.com/modelcatalogue-core/ModelCatalogueCorePlugin'
}

and

plugins{ 
    compile "org.modelcatalogue.plugins:grails-model-catalogue-core-plugin:<version>"
}

Plugin Documentation

Running the Standalone Application

You can run the model catalogue application standalone either for development purposes or to setup your own metadata registry.

Requirements

To run application locally you need following installed on your machine

To verify you have these requirements installed try following commands in the terminal:

java -version
node --version
npm --version # part of NodeJS
git --version

All tools should return their versions.

Launching the application

Model Catalogue provides rich web client which requires some other tools to be installed before launching the application. You need to install required NodeJS tools and dependencies for the JavaScript frontend.

git clone https://github.com/MetadataRegistry/ModelCataloguePlugin.git
cd ModelCataloguePlugin
cd ModelCatalogueCorePlugin
npm install
bower install

This will download all the necessary JavaScript sources. Than you can run the standalone application

cd ..
cd ModelCatalogueCorePluginTestApp
./grailsw run-app

This will launch the application in development mode with in memory database. If you want to run the application against persistent database, you need to override the configuration according to Grails database configuration docs

open ModelCataloguePlugin/ModelCatalogueCorePluginTestApp/grails-app/conf/DataSource.groovy

There are three default users available

Username Description
viewer User with role VIEWER can only browse the catalogue without any
curator User with role CURATOR has most of the privileges except editing relationship types and user management
admin User with role ADMIN has all the privileges

The users comes with passwords which are by default same as the username. You should change them in the Bootstrap.groovy file.

open ModelCataloguePlugin/ModelCatalogueCorePluginTestApp/grails-app/conf/BootStrap.groovy

You find the code where new users are crated around line 40 so change the password: 'xyz' definitions to the more solid passwords.

When everything set up you can run the application with ./grailsw prod run-app. You can also create a WAR file running ./grailsw warand than deploy the WAR file located under the target folder to your web server such as Tomcat.

When application has started you can navigate to your browser to http://localhost:8080/ModelCatalogueCorePluginTestApp and use one of the predefined users and start using the catalogue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.