Git Product home page Git Product logo

mesh-musetech-example's Introduction

Gentics Mesh MuseTech Example

This repository contains all the sources that were needed to build the musetech.getmesh.io demo site.

Blogpost

This demo project is covered by these blogposts:

Project structure

This project consists of two parts. The importer contains the schema models, contents and is responsible of importing the images, videos, audioguides, exhibits, pages into the headless CMS. The app contains the front-end react app which will present the content in various formats to clients.

Importer

The importer is a Java program which will setup the project in Gentics Mesh.

The ImportRunner.java class contains the main runner which can be executed to run the importer.

The importer is using the Gentics Mesh Java Client and RxJava to create the project, schemas, microschemas and nodes.

App

The React front-end uses CORS to access the Headless CMS API to fetch the contents via GraphQL. The URL for the Gentics Mesh instance that will be used can be configured in the app/src/config.json file.

The project can be build using yarn && yarn build or run via yarn && yarn start.

Used software

Contents

The contents that were used in this project have different licenses. The licenses have been added in the json files. Please check the matching license before re-using the contents.

  • Image: Source List
  • Video: Source List
  • Text: All texts and descriptions are
  • Audio: The audio guides that are part of this project have been generated using the text source.

mesh-musetech-example's People

Contributors

jotschi avatar mephinet avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mesh-musetech-example's Issues

duplicate record key

I tried to populate using the importer. But, it stopped with duplicate key ERROR.

Environment
openjdk version "1.8.0_232"
node v8.10.0
Ubuntu 18.04.2 LTS

Server Build
#run as sudo

cd ~/mesh
mvn clean install -Denv.JAVA_1_8_HOME=$JAVA_HOME -DskipTests -Dskip.unit.tests -Dskip.performance.test s -Dskip.cluster.tests -Dmaven.javadoc.skip=true
chown username.username -R ~/mesh

Server Run
#run as user

cd ~/mesh/demo/target
java -jar mesh-demo-1.3.3-SNAPSHOT.jar

Client Importer Build

cd ~/mesh-musetech-example/importer
./mvnw -B -U clean package
cp -rf data target

Client Importer Run

cd ~/mesh-musetech-example/importer/target
java -jar mesh-musetech-importer-0.0.1-SNAPSHOT.jar

Client Output

Dec 25, 2019 12:01:49 PM com.gentics.mesh.musetech.importer.impl.ImporterImpl INFO: Created screen screen-1 com.gentics.mesh.rest.client.MeshRestClientMessageException: Error:500 in POST / api/v1/musetech/nodes/fd58237c79d64bf198237c79d6bbf107 : Internal Server Error I nfo: Internal error occurred. at com.gentics.mesh.rest.client.impl.MeshOkHttpRequestImpl.throwOnError( MeshOkHttpRequestImpl.java:169) at com.gentics.mesh.rest.client.impl.MeshOkHttpRequestImpl.mapResponse(M eshOkHttpRequestImpl.java:137) at io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.on Success(SingleMap.java:57) at io.reactivex.internal.operators.single.SingleCreate$Emitter.onSuccess (SingleCreate.java:67) at com.gentics.mesh.rest.client.impl.MeshOkHttpRequestImpl$2.onResponse( MeshOkHttpRequestImpl.java:122) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:206) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:624) at java.lang.Thread.run(Thread.java:748)

Dec 25, 2019 12:01:49 PM com.gentics.mesh.musetech.importer.impl.ImporterImpl INFO: Created screen screen-1 com.gentics.mesh.rest.client.MeshRestClientMessageException: Error:500 in POST / api/v1/musetech/nodes/fd58237c79d64bf198237c79d6bbf107 : Internal Server Error I nfo: Internal error occurred. at com.gentics.mesh.rest.client.impl.MeshOkHttpRequestImpl.throwOnError( MeshOkHttpRequestImpl.java:169) at com.gentics.mesh.rest.client.impl.MeshOkHttpRequestImpl.mapResponse(M eshOkHttpRequestImpl.java:137) at io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.on Success(SingleMap.java:57) at io.reactivex.internal.operators.single.SingleCreate$Emitter.onSuccess (SingleCreate.java:67) at com.gentics.mesh.rest.client.impl.MeshOkHttpRequestImpl$2.onResponse( MeshOkHttpRequestImpl.java:122) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:206) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:624) at java.lang.Thread.run(Thread.java:748)

Server Output

12:01:49.104 [] ERROR [vert.x-worker-thread-5] [c.g.m.g.OrientDBDatabase] - com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #742:19: found duplicated key '1c51487f8e8043c291487f8e8053c2c1' in index 'MeshVertexImpl' previously assigned to the record #753:1 DB name="storage" INDEX=MeshVertexImpl RID=#753:1 12:01:49.107 [] ERROR [vert.x-worker-thread-18] [c.g.m.g.OrientDBDatabase] - com.orientechnologies.orient.core.storage.ORecordDuplicatedException : Cannot index record #743:19: found duplicated key 'fd58237c79d64bf198237c79d6bbf107' in index 'MeshVertexImpl' previously assigned to the recor d #738:2 DB name="storage" INDEX=MeshVertexImpl RID=#738:2 12:01:49.109 [] ERROR [vert.x-eventloop-thread-15] [c.g.m.r.r.FailureHandler] - Error for request in path: /api/v1/musetech/nodes/fd58237c79d64bf 198237c79d6bbf107 12:01:49.111 [] ERROR [vert.x-eventloop-thread-15] [c.g.m.r.r.FailureHandler] - Error: com.gentics.mesh.core.rest.error.GenericRestException: 500 Internal Server Error error_internal params {} at com.gentics.mesh.core.rest.error.Errors.error(Errors.java:86) at com.gentics.mesh.graphdb.OrientDBDatabase.tx(OrientDBDatabase.java:368) at com.gentics.mesh.core.verticle.handler.HandlerUtilities.eventAction(HandlerUtilities.java:337) at com.gentics.mesh.core.verticle.handler.HandlerUtilities.eventAction(HandlerUtilities.java:327) at com.gentics.mesh.core.verticle.handler.HandlerUtilities.lambda$createOrUpdateElement$5(HandlerUtilities.java:166) at com.gentics.mesh.graphdb.OrientDBDatabase.tx(OrientDBDatabase.java:343) at com.gentics.mesh.core.verticle.handler.HandlerUtilities.syncTx(HandlerUtilities.java:244) at com.gentics.mesh.core.verticle.handler.HandlerUtilities.createOrUpdateElement(HandlerUtilities.java:145) at com.gentics.mesh.core.verticle.handler.HandlerUtilities.updateElement(HandlerUtilities.java:129) at com.gentics.mesh.core.endpoint.handler.AbstractCrudHandler.handleUpdate(AbstractCrudHandler.java:84) at com.gentics.mesh.core.endpoint.node.NodeEndpoint.lambda$addUpdateHandler$16(NodeEndpoint.java:431) at io.vertx.ext.web.impl.BlockingHandlerDecorator.lambda$handle$0(BlockingHandlerDecorator.java:48) at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$2(ContextImpl.java:316) at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:76) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748)

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.