Skip to content

Authentication system using NextJS, GraphQL, Apollo Client, Apollo Hooks, Apollo Server, MongoDB, Nginx, Docker, Docker-Compose and Kubernetes

Notifications You must be signed in to change notification settings

nreoch25/nextjs-graphql-hooks-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextJS GraphQL Hooks Auth

Authentication system boilerplate application using NextJS, GraphQL, Apollo Client, Apollo Server, MongoDB, and Nginx

View the live demo

You will need a .env file in the server directory with the following environment variables
This uses Mailtrap for testing the password reset functionality. see: https://mailtrap.io/

MONGO_URI - URI pointing to your mongodb instance CLIENT_URI - Client side URI JWT_SECRET - Secret for jsonwebtoken SERVER_URI - Server side URI DOMAIN - Domain for Cookie PORT - GraphQL server port MAIL_HOST - Mailtrap host MAIL_PORT - Mailtrap port MAIL_USER - Mailtrap user MAIL_PASS - Mailtrap password NODE_ENV - Node environment 

To run in development mode

$ docker-compose up

NOTE: There is a production deployment pipeline setup with TravisCI, DockerHub, and Kubernetes that runs in a Minikube cluster. I can supply full instructions if needed to get you setup for the production deployment pipeline

About

Authentication system using NextJS, GraphQL, Apollo Client, Apollo Hooks, Apollo Server, MongoDB, Nginx, Docker, Docker-Compose and Kubernetes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published