All Projects → wundergraph → nextjs-typescript-postgresql-graphql-realtime-chat

wundergraph / nextjs-typescript-postgresql-graphql-realtime-chat

Licence: other
WunderGraph Realtime Chat Example using NextJS, TypeScript, PostgreSQL, GraphQL

Programming Languages

typescript
32286 projects
CSS
56736 projects

Projects that are alternatives of or similar to nextjs-typescript-postgresql-graphql-realtime-chat

React Fullstack Graphql
Starter projects for fullstack applications based on React & GraphQL.
Stars: ✭ 1,352 (+2450.94%)
Mutual labels:  graphql-subscriptions
Grial
A Node.js framework for creating GraphQL API servers easily and without a lot of boilerplate.
Stars: ✭ 194 (+266.04%)
Mutual labels:  graphql-subscriptions
graphql-nats-subscriptions
A graphql subscriptions implementation using nats and apollo's graphql-subscriptions
Stars: ✭ 27 (-49.06%)
Mutual labels:  graphql-subscriptions
Graphql Google Pubsub
A graphql-subscriptions PubSub Engine using Google PubSub
Stars: ✭ 108 (+103.77%)
Mutual labels:  graphql-subscriptions
Graphql Kafka Subscriptions
Apollo graphql subscriptions over Kafka protocol
Stars: ✭ 154 (+190.57%)
Mutual labels:  graphql-subscriptions
36 Graphql Concepts
📜 36 concepts every GraphQL developer should know.
Stars: ✭ 209 (+294.34%)
Mutual labels:  graphql-subscriptions
Graphql Rxjs
fork of Graphql which adds Observable support
Stars: ✭ 78 (+47.17%)
Mutual labels:  graphql-subscriptions
golang-gqlgen-reactjs-subscription-demo
GraphQL Subscription with Golang/React JS & React Apollo Client Subscription
Stars: ✭ 29 (-45.28%)
Mutual labels:  graphql-subscriptions
Ddp Apollo
DDP link for Apollo with GraphQL Subscriptions support
Stars: ✭ 163 (+207.55%)
Mutual labels:  graphql-subscriptions
go-graphql-subscription-example
☝️ go-graphql subscription over Kafka/Redis/NSQ example
Stars: ✭ 34 (-35.85%)
Mutual labels:  graphql-subscriptions
Graphql Postgres Subscriptions
A graphql subscriptions implementation using postgres and apollo's graphql-subscriptions
Stars: ✭ 133 (+150.94%)
Mutual labels:  graphql-subscriptions
Graphql Genie
Simply pass in your GraphQL type defintions and get a fully featured GraphQL API with referential integrity, inverse updates, subscriptions and role based access control that can be used client side or server side.
Stars: ✭ 147 (+177.36%)
Mutual labels:  graphql-subscriptions
Aws Mobile Appsync Sdk Ios
iOS SDK for AWS AppSync.
Stars: ✭ 231 (+335.85%)
Mutual labels:  graphql-subscriptions
Graphql Subscriptions
📰 A small module that implements GraphQL subscriptions for Node.js
Stars: ✭ 1,390 (+2522.64%)
Mutual labels:  graphql-subscriptions
ios-graphql
iOS code examples with GraphQL, Apollo & more
Stars: ✭ 78 (+47.17%)
Mutual labels:  graphql-subscriptions
Angular Fullstack Graphql
🚀 Starter projects for fullstack applications based on Angular & GraphQL.
Stars: ✭ 92 (+73.58%)
Mutual labels:  graphql-subscriptions
Djangochannelsgraphqlws
Django Channels based WebSocket GraphQL server with Graphene-like subscriptions
Stars: ✭ 203 (+283.02%)
Mutual labels:  graphql-subscriptions
serverless-graphql-subscriptions
Graphql subscriptions with apollo-server-lambda
Stars: ✭ 67 (+26.42%)
Mutual labels:  graphql-subscriptions
next-saas-starter
⚡️ Free Next.js responsive landing page template for SaaS products made using JAMStack architecture.
Stars: ✭ 497 (+837.74%)
Mutual labels:  nextjs-typescript
nextjs-graphql-auth
Authentication system using NextJS, GraphQL, Apollo Client, Apollo Server, MongoDB, Nginx, Docker, Docker-Compose and Kubernetes
Stars: ✭ 27 (-49.06%)
Mutual labels:  graphql-subscriptions

WunderGraph Realtime Chat with Server Side Rendering (SSR) & Authentication

WunderGraph Realtime Chat Example using NextJS, TypeScript & PostgreSQL

Do you also hate applications that do complex login flows, loading spinners, etc. before allowing you into their app? Here's a simple solution how we can deliver a much better user experience while keeping the developer experience simple.

This example demonstrates how you can easily build a NextJS application with Server Side Rendering (SSR) and Realtime subscriptions in the client.

When the user is authenticated, the initial page will be rendered server side. Once the client is initialized, it will start a realtime subscription to keep the UI updated.

The example consists of two components, the NextJS service as well as the headless API service. The headless API service handles authentication and API requests. Once authenticated, a cookie is set by the API service. Both NextJS application and headless API service run on the same root domain.

This allows us to "forward" the cookie header from the initial client request from the NextJS getServerSideProps method to the headless API service.

The code that might interest you the most can be found in index.tsx

Features

Features:

  • Authentication
  • Authorization
  • Server Side Rendering
  • Realtime Updates
  • Cross Tab Login/Logout
  • typesafe generated Typescript Client

Prerequisites

Make sure you have docker compose installed. Alternatively, you can use any PostgreSQL database available on localhost.

Getting Started

Install the dependencies and run the example:

yarn global add @wundergraph/wunderctl@latest
yarn
yarn dev

Cleanup

docker-compose rm -v -f

Questions?

Read the Docs.

Join us on Discord!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].