Changeset 6881 for ComponentRegistry/branches/ComponentRegistry-2.0/README
- Timestamp:
- 12/29/15 08:37:24 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-2.0/README
r5794 r6881 5 5 ----------- 6 6 The Component Registry stores CMDI metadata components and profiles and 7 offers a service to list and retrieve them. The BrowserGuiis a web7 offers a service to list and retrieve them. The separate GUI project is a web 8 8 application displaying available components in the component registry in the 9 9 correct context: application domain, creator, creation date, version, etc. 10 10 The registry offers a hierarchical structure for browsing the components. 11 11 12 The componentRegistry is set up as a Flex Gui frontend communicating with a 13 Java based backend (REST service). 12 The Component Registry is set up as a Javascript frontend communicating with a 13 Java based backend (REST service). Sources for the front end can be found, along 14 with more information, at <https://github.com/clarin-eric/react-webpack-comp-reg>. 14 15 15 16 The ComponentRegistry is a central software component to the Clarin MetaData … … 36 37 - 'ComponentRegistry', a Java project that implements the Component Registry 37 38 REST service, administration pages and a web container for a client UI. 38 - 'Component BrowserGui', a Flex project that implements a client for the39 Component Registry REST service.39 - 'ComponentSpecFixer', a utility that cleans up the component specifications 40 in the database with 'materialised expansion'. 40 41 41 42 How to set up for development/building from source … … 43 44 * Creating initial setup files: 44 45 45 - in ComponentBrowserGui: `mvn buildnumber:create flexmojos:flexbuilder`46 - This generates project files for Flash Builder. Open in FB using47 File > Import Flex Project and use the 'Project Folder' option.48 46 - in ComponentRegistry: `mvn eclipse:eclipse` 49 47 - Generates eclipse configuration 50 48 - For NetBeans, simply open the POM as a project 51 49 52 When using FlashBuilder to develop the ComponentBrowserGui, create a porject by53 "Import a Flex project from an FXP, ZIP, or project folder".54 55 When using FlashBuilder to develop, make sure to configure the correct Flex SDK. It should56 be version 3.6, which you can download for free at <http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk>.57 In addition, you should configure the project to build for Flash player 10.0.0 (instead of default minimum version58 provided by SDK).59 60 50 * Creating war artifact for local deployment: 61 51 62 - in ComponentBrowserGui: mvn install63 52 - in ComponentRegistry: mvn package 64 53 65 The ComponentRegistry war will include the flex swf file needed to start the application. 66 So deploying the resulting war will be enough to start the application. 54 The ComponentRegistry war will include the front end files needed to start the 55 application. So deploying the resulting war will be enough to start the 56 application. 67 57 68 58 * Building for specific deployment environment … … 78 68 The ComponentRegistry needs the general-component-schema.xsd, which should be found at: 79 69 1) ComponentRegistry/src/main/binding/ -> that directory has a svn:externals property pointing to the schema. 80 Do a 'svn propget svn:externals' to see the property. Results in: 'http://svn.clarin.eu/metadata/trunk/toolkit/general-component-schema.xsd general-component-schema.xsd' 81 82 * Missing some artifacts for Maven?: 83 The ComponentBrowserGui project needs some swf files which are not in any maven repository I could find. 84 So install them manually: go to ComponentBrowserGui/libs/ and run the commands in maveninstalllib.txt 70 Do 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' 85 72 86 73 * Developing and Debugging "ComponentRegistry" back-end. … … 93 80 it means that you do not have a JNDI resource for the database connection set up correctly. 94 81 See the installation instructions for more information. 95 96 * Developing and Debugging "ComponentBrowserGui".97 82 98 Always make sure that ComponentRegistry-war grabbed the newest version of the Flex GUI. 99 For this you do "mvn install" in ComponentBrowserGui, and 100 then compile the backend in ComponentRegistry. Second of all, you should know that you can run and 101 debug the Gui from FlashBuilder. For this you need to edit "Run/Debug" in the project properties. 102 For instance, if a bug to fix appears when fuilfilling the request 103 http://localhost:8080/ComponentRegistry/?item=clarin.eu:cr1:c_1288172614011&browserview=comments 104 you need to make this uri an "URI to launch". To do this, you duplicate one of the existing 105 scenarios in Run/debug menu, and then EDIT the duplicated version by changing its "name" 106 and "URI or path to launch" in the corresponding way. 83 * Developing the front end: 107 84 108 Make sure to download and install the DEBUG version of the Adobe Flash Player plugin from 109 <https://www.adobe.com/support/flashplayer/downloads.html> 110 If you are using Chrome, make sure to also disable the built-in Flash player. See: 111 <https://support.google.com/chrome/answer/108086> 112 85 See <https://github.com/clarin-eric/react-webpack-comp-reg>. 113 86 114 87 Installation
Note: See TracChangeset
for help on using the changeset viewer.