Skip to content

Nextjs for Apollo server and client with typescript and graphql-codegen

Notifications You must be signed in to change notification settings

koheitakumi/apollo-nextjs-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple sample for GraphQL server and Next.js client.

Feature

  • Server side
    • Apollo server with Express
    • Authentication
  • Client side
    • Next.js
    • Apollo client
  • Others
    • Graphql with query, mutation, subscriptions
    • Use graphql-codegen
    • Typescript

How to use

  1. Install packages.
# At root
yarn install

# or

npm install
  1. Start project
yarn dev

# or

npm run dev
  1. Access the following URL.

What you can do

  • Sign up
    • email and password are required. Any strings are OK.
    • The token is stored in cookie.
  • Login
  • Logout
  • List, Add, Delete and subscribe todo.

That's all, very simple :)

About

Nextjs for Apollo server and client with typescript and graphql-codegen

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published