Overview:
This analysis is about a Prisma React Auth0 Example which is a basic starter code for a fullstack app based on Prisma, Auth0, React, GraphQL, and Apollo Client. The main goal of this project is to provide a possible authentication and authorization flow for Prisma’s Instagram clone. The repository follows the Prisma Permissions and is intended for learning purposes. The technologies used include React, Apollo Client, Auth0, Prisma, graphql-yoga, and prisma-binding.
Features:
- Frontend: React framework for building user interfaces.
- Backend: Authentication as a service with Auth0.
- Database: Prisma turns the database into a GraphQL API.
- GraphQL server: graphql-yoga, a fully-featured GraphQL server with easy setup and great developer experience.
- GraphQL binding: prisma-binding provides a GraphQL binding for Prisma services.
Installation:
To use this code, you need to have the following installed:
- Git
- Node 8+
- Prisma CLI:
npm i -g prisma - Auth0 account
- Basic Auth0 Console Knowledge
Create a .env file and set the PRISMA_SECRET variable to your desired secret. In the same .env file, provide the necessary information obtained from your Auth0 console.
Copy and paste the auth0-variables.js file and fill in the variables with your own values.
Summary:
This Prisma React Auth0 Example provides a basic starter code for building a fullstack app using Prisma, Auth0, React, GraphQL, and Apollo Client. It focuses on authentication and authorization flow and follows the Prisma Permissions. The code includes installation instructions and uses popular technologies like React and Auth0 for seamless user experience and security.