lemonbrain/concrete5_graphql_websocket_sample

GraphQL and websocket sample package that is installable via composer for concrete 5

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Language:JavaScript

Type:concrete5-package

1.1.6 2019-06-28 09:09 UTC

This package is auto-updated.

Last update: 2024-04-11 21:46:16 UTC


README

The idea of this repo is to show how to use the GraphQL and Websockets Composer Package in Concrete5.

Use this package just as a composer Concrete5 package, cause of the composer requirings

We build a C5 Version with Siler GraphQL, Apollo V2, React and Material UI. checkout the showdown here concrete5.lemonbrain.ch

This package is based on an other package and the documentation for it is in this wiki

This project is a concrete5 package that is powered entirely by composer.

To install this package on a composer based concrete5 site, make sure you already have composer/installers then run:

$ composer require lemonbrain/concrete5_graphql_websocket_sample

Then install npm requirements

$ cd ./public/packages/concrete5_graphql_websocket_sample
$ npm install
$ npx webpack --watch

Then install the package on Concrete5

$ ./vendor/bin/concrete5 c5:package-install concrete5_graphql_websocket_sample

After insallation of this package refresh your entities /index.php/dashboard/system/environment/entities/view. If you wanna have exact the same look and feel activate also the theme from this package /index.php/dashboard/pages/themes. And then navigate to the /person single page. If you wanna use the websocket servers, do not forget the apache settings and activate it /index.php/dashboard/system/environment/graphql