Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nreoch25/nextjs-graphql-auth
Authentication system using NextJS, GraphQL, Apollo Client, Apollo Server, MongoDB, Nginx, Docker, Docker-Compose and Kubernetes
https://github.com/nreoch25/nextjs-graphql-auth
apollo-client apollo-server apollo-subscription docker docker-compose dotenv enzyme graphql graphql-subscriptions jest kubernetes mailtrap minikube mongodb nextjs nginx nodejs react reactstrap
Last synced: 4 days ago
JSON representation
Authentication system using NextJS, GraphQL, Apollo Client, Apollo Server, MongoDB, Nginx, Docker, Docker-Compose and Kubernetes
- Host: GitHub
- URL: https://github.com/nreoch25/nextjs-graphql-auth
- Owner: nreoch25
- Created: 2019-01-04T22:20:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T05:33:45.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T12:31:18.093Z (3 months ago)
- Topics: apollo-client, apollo-server, apollo-subscription, docker, docker-compose, dotenv, enzyme, graphql, graphql-subscriptions, jest, kubernetes, mailtrap, minikube, mongodb, nextjs, nginx, nodejs, react, reactstrap
- Language: JavaScript
- Homepage:
- Size: 966 KB
- Stars: 26
- Watchers: 5
- Forks: 7
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - nreoch25/nextjs-graphql-auth - Authentication system using NextJS, GraphQL, Apollo Client, Apollo Server, MongoDB, Nginx, Docker, Docker-Compose and Kubernetes (react)
README
# NextJS GraphQL Auth
### Authentication system boilerplate application using NextJS, GraphQL, MongoDB, and Nginx
## There is a new version using Apollo Hooks on the client instead of Render props. [check it out]
_You will need a .env file in the server directory with the following environment variables_
```
MONGO_URI - URI pointing to your mongodb instance
CLIENT_URI - Client side URI
JWT_SECRET - Secret for jsonwebtoken
PORT - GraphQL server port
MAIL_HOST - Mailtrap host
MAIL_PORT - Mailtrap port
MAIL_USER - Mailtrap user
MAIL_PASS - Mailtrap password
```To run in development mode
```sh
$ 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**
[check it out]: https://github.com/nreoch25/nextjs-graphql-hooks-auth