Coder Social home page Coder Social logo

aicirou / realtime-graphql-subscriptions-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 26 KB

Simplest demo of Subscription in GraphQL with webSocket!

HTML 21.49% JavaScript 78.51%
apollo-client apollo-server graphql graphql-subscriptions graphql-ws graphql-subscriptions-demo

realtime-graphql-subscriptions-demo's Introduction

realtime-graphql-subscriptions-demo

This is a demo of how to use GraphQL subscriptions with Apollo Server and Apollo Client to create a real-time chat application.

Running the server

To run the server, navigate to the server directory and run the following commands:

npm install
npm start

This will start the server on http://localhost:4000.

Running the client

To run the client, navigate to the client directory and run the following commands:

npm install
npm start

This will start the client on http://localhost:3000.

Using the app

Once the server and client are running, you can open the client in your browser and start sending messages. You can also open multiple clients in different tabs or windows to see the real-time updates.

Contributing

This is a simple demo, but if you'd like to contribute, please feel free to open an issue or a pull request.

realtime-graphql-subscriptions-demo's People

Contributors

aicirou avatar

Watchers

 avatar

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.