GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - clarin-eric/component-registry-front-end: Test prototype for new CMDI Component Registry frontend

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,456 Commits
1,456 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
docker/rest/tomcat
docker/rest/tomcat
 
 
nbproject
nbproject
 
 
src
src
 
 
test
test
 
 
.browserslistrc
.browserslistrc
 
 
.editorconfig
.editorconfig
 
 
.env
.env
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.jshintrc
.jshintrc
 
 
.npmignore
.npmignore
 
 
.travis.old.yml
.travis.old.yml
 
 
.yo-rc.json
.yo-rc.json
 
 
2.5.0-dev.tar.gz
2.5.0-dev.tar.gz
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
build.sh
build.sh
 
 
docker-compose.yml
docker-compose.yml
 
 
index.html
index.html
 
 
jsdoc.conf.json
jsdoc.conf.json
 
 
karma.conf.js
karma.conf.js
 
 
make-source-tarball.sh
make-source-tarball.sh
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
pgrestore.sh
pgrestore.sh
 
 
run.sh
run.sh
 
 
webpack.common.js
webpack.common.js
 
 
webpack.dev.js
webpack.dev.js
 
 
webpack.prod.js
webpack.prod.js
 
 

Repository files navigation

CLARIN Component Registry - React.js front end

CI

This project implements a front end for the CLARIN Component Registry, part of CLARIN's Component Metadata Infrastructure (CMDI).

This front end communicates with the Component Registry REST interface (see the component-registry-rest project). The main building blocks of this application are:

  • React (currently version 0.14)
  • Fluxxor
  • jQuery
  • Bootstrap through react-boostrap components
  • Jsonix for XML serialisation
  • For building:
    • Webpack
    • Babel
    • SCSS (sass-loader with node-sass)

To build, run npm install, then npm run build.

To start a development server, run npm run start.

More information, including UML diagrams, can be found in the project's wiki.

Getting started quickly

To run the application in development mode:

Using docker compose (recommended)

Setup (on first run):

  • Edit .env
    • Configure the build output location of the REST service (component-registry-rest )
    • Configure the location of a database backup
  • Run bash build.sh install build
  • Run bash run.sh
  • Restore a component registry database backup, for instance: bash pgrestore.sh compreg_20250714T090501.sqlz
  • Stop the compose project with CTRL-C

After initial setup:

  • Simply run run.sh
  • Access the front end at localhost:3000

To clear the database volume (for instance before restoring a backup):

  • Run docker-compose down -v

Locally

  • Start the Component Registry back end/REST service (see component-registry-rest)
  • If necessary, adapt the configuration in webpack.dev.js to match the back end root location
    • You can also change the settings in src/compRegConfig.jsp but unless the development server is used to proxy the back end, CORS issues can be expected.
  • Install dependencies by running npm install
  • Start the webpack dev server by running npm start run
  • The project has hot reloading configured, so making changing to the code will reload the application in the dev server without need to restart it manually

Build

For local testing and development you can make a local build using npm start build.

For other purposes, it is advisable to build the docker image. This is managed in a separate repository: docker-component-registry-front-end. Building this image will build the application from sources so there is no need to compile it separately. The build script fetches published sources by default but can be configured to use a local source directory. See the repository for details.

Links

  • CLARIN Trac pages for the Component Registry
  • Back end project: component-registry-rest
  • Docker image project for this front end application: docker-component-registry-front-end
  • Docker Compose project for the Componen Registry (back end and front end): compose_compreg

Licence

Copyright (C) 2019 CLARIN ERIC

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Test prototype for new CMDI Component Registry frontend

trac.clarin.eu/wiki/ComponentRegistryAndEditor/ReactFrontEnd

Topics

clarin-component-registrycmdi

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

3 stars

Watchers

9 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.