GithubHelp home page GithubHelp logo

phillip-kruger / membership Goto Github PK

View Code? Open in Web Editor NEW
19.0 8.0 4.0 4.14 MB

Membership service (to demonstrate graphQL)

License: Apache License 2.0

Java 61.97% HTML 20.61% CSS 17.42%
javaee jax-rs graphql thorntail payara-micro openliberty graphql-java

membership's Introduction

ALSO SEE: https://github.com/phillip-kruger/graphql-example for a more up to date example

Membership service

This is an example application that demonstrate how to add GraphQL to your existing JAX-RS Application.

Watch a short screencast here

This application use these libraries:

Simple CRUD Application that can create, update, delete and get a membership. Every membership has a owner. The application use JPA to persist the Object in a DB. "Business Logic" is in the Membership Service (EJB) and the JAX-RS API in MembershipRestApi.

Added annotations and MembershipGraphQLApi to expose API as GraphQL.

Getting started

From source

Get the source:

git clone https://github.com/phillip-kruger/membership.git
cd membership

This demo runs on Thorntail Build and start:

mvn clean install -Pthorntail

The server is now up and running with some test data populated (see resources/META-INF/load.sql)

Available endpoints:

Also:

Run some examples:

In the GraphiQL GUI try out some of the examples

Openshift

You can also deploy and run this in OpenShift. First log into the OpenShift enviroment:

oc login

If you do not already have a project, create one:

oc new-project demo --description="Some demo applications" --display-name="Demo"

Then run

mvn clean fabric8:deploy -Popenshift

membership's People

Contributors

phillip-kruger avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

membership's Issues

GRAPHQL SUBSCRIPTION FEATURE

Hello Phillip!

Thanks for nice tutorial, it is really amazing, but i have been searching in internet how to do subscriptions but i could not find one...please help us to make a tutorial on how to do graphql Subscriptions

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.