source: ComponentRegistry/branches/ComponentRegistry-2.0/README @ 6963

Last change on this file since 6963 was 6881, checked in by Twan Goosen, 8 years ago

documentation updated for JS front end

  • Property svn:mergeinfo set to (toggle deleted branches)
    /ComponentRegistry/trunk/READMEmergedeligible
    /ComponentRegistry/branches/ComponentRegistry-1.12.0/README2071-2124
    /ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/README2143-2514
    /ComponentRegistry/branches/ComponentRegistry-1.14.0/README3885-4093
    /ComponentRegistry/branches/ComponentRegistry-schematron/README1751-1774
    /ComponentRegistry/branches/georgovassilis_workspace/README3663-4097
    /ComponentRegistry/branches/jeaferversion/README1631-1680
    /ComponentRegistry/tags/ComponentRegistry-1.9.1/README1565
File size: 3.9 KB
Line 
1CLARIN COMPONENT REGISTRY
2=========================
3
4What is it?
5-----------
6The Component Registry stores CMDI metadata components and profiles and
7offers a service to list and retrieve them. The separate GUI project is a web
8application displaying available components in the component registry in the
9correct context: application domain, creator, creation date, version, etc.
10The registry offers a hierarchical structure for browsing the components.
11
12The Component Registry is set up as a Javascript frontend communicating with a
13Java based backend (REST service). Sources for the front end can be found, along
14with more information, at <https://github.com/clarin-eric/react-webpack-comp-reg>.
15
16The ComponentRegistry is a central software component to the Clarin MetaData
17Infrastructure (CMDI). For more information on CMDI, see
18<http://www.clarin.eu/cmdi>.
19
20Documentation
21-------------
22- A set of TRAC pages for developers has been setup on the Clarin.eu TRAC at
23<http://trac.clarin.eu/wiki/ComponentRegistryAndEditor>. You will need a
24login to access these pages. To request one, contact <clarin@clarin.eu>.
25
26- The REST interface is documented at <http://www.clarin.eu/node/3248>.
27
28- Documentation for users is available at <http://www.clarin.eu/node/3223>.
29
30- Information on internally managing the application can be found at
31<https://trac.clarin.eu/wiki/ComponentRegistryAndEditor#Management>.
32
33Project structure
34-----
35This project contains two modules:
36
37- 'ComponentRegistry', a Java project that implements the Component Registry
38  REST service, administration pages and a web container for a client UI.
39- 'ComponentSpecFixer', a utility that cleans up the component specifications
40in the database with 'materialised expansion'.
41
42How to set up for development/building from source
43--------------------------------------------------
44* Creating initial setup files:
45
46 - in ComponentRegistry: `mvn eclipse:eclipse` 
47        - Generates eclipse configuration
48        - For NetBeans, simply open the POM as a project
49
50* Creating war artifact for local deployment:
51
52 - in ComponentRegistry: mvn package
53 
54The ComponentRegistry war will include the front end files needed to start the
55application. So deploying the resulting war will be enough to start the
56application.
57
58* Building for specific deployment environment
59By default the application is set to work when deployed on localhost. If you want to change that
60change the serverRootUrl property in the pom.xml of ComponentRegistry. There are already build
61profiles for lux16.mpi.nl and catalog.clarin.eu that set these correctly. You can trigger
62these by providing the -Plux16 or -Pclarin options to mvn respectively.
63
64The rest service relies on a Component Registry database, for which a create script can be found in
65the src/sql directory. For configuration instructions, see the comments in context.xml.
66
67* NOTE on generating java classes from general-component-schema.xsd.
68The ComponentRegistry needs the general-component-schema.xsd, which should be found at:
691) ComponentRegistry/src/main/binding/ -> that directory has a svn:externals property pointing to the schema.
70Do a 'svn propget svn:externals' to see the property. Results in:
71        'http://svn.clarin.eu/metadata/trunk/toolkit/general-component-schema.xsd general-component-schema.xsd'
72
73* Developing and Debugging "ComponentRegistry" back-end.
74 
75Select the 'development' Maven profile (Netbeans has a dropdown menu for this) to get
76logging output on the console.
77
78If, when trying to run the backend, you're getting errors from Spring stating that
79  "Name [ComponentRegistry] is not bound in this Context. Unable to find [ComponentRegistry]"
80it means that you do not have a JNDI resource for the database connection set up correctly.
81See the installation instructions for more information.
82
83* Developing the front end:
84
85See <https://github.com/clarin-eric/react-webpack-comp-reg>.
86 
87Installation
88------------
89Please see the file called INSTALL
90
91Upgrading
92---------
93Please see the file called UPDATE
Note: See TracBrowser for help on using the repository browser.