https://github.com/pcpratheesh/go-graphql-subscription-live-feed
A sample repo which demonstrates graphql subscription
https://github.com/pcpratheesh/go-graphql-subscription-live-feed
Last synced: 3 months ago
JSON representation
A sample repo which demonstrates graphql subscription
- Host: GitHub
- URL: https://github.com/pcpratheesh/go-graphql-subscription-live-feed
- Owner: pcpratheesh
- Created: 2023-12-14T14:39:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:38:35.000Z (over 2 years ago)
- Last Synced: 2025-01-29T00:36:37.678Z (over 1 year ago)
- Language: JavaScript
- Size: 327 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-graphql-subscription-live-feed
This application showcases a basic setup for a real-time data streaming functionality using `GraphQL subscriptions`. The backend is built with Golang, utilizing the popular `99designs/gqlgen` package to implement the GraphQL server with subscription capabilities. On the frontend, `React` is used to connect to the `GraphQL` server, displaying the real-time data updates on the UI.
## Backend (Golang)
- Navigate to the `server` directory.
- Run `go mod download `to install the necessary Go packages.
- Run `go run server.go` to start the GraphQL server.
## Frontend (React)
- Navigate to the `client` directory.
- Run `npm install` to install the required npm packages.
- Run `npm start` to start the React development server.
## Usage
Access the React application at [http://localhost:3000](http://localhost:3000) (or as per the React server configuration).
