Coder Social home page Coder Social logo

javiertrujillog / pizza42 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from auth0-samples/auth0-react-samples

0.0 1.0 0.0 4.01 MB

Auth0 Integration Samples for React Applications

Home Page: https://auth0.com/docs/quickstart/spa/react

License: MIT License

HTML 3.01% JavaScript 96.99%

pizza42's Introduction

Pizza 42 - An Auth0 Demo

Pizza 42 is a (fictitious) national pizza delivery chain. They’re in the process of modernizing their online ordering system and would like to use Auth0 for their identity needs. This demo showcases multiple features of Auth0 using its React SDK, primarily:

  • Login with Google as Social Provider
  • Protect routes using Access Token scopes
  • Enrich user profile information with user_metadata

Live Demo

You can access a live demo here

Configuration

Make sure to replace the values on auth_config.json file; take a look at the original repo for more information

You will also need to create a .env file with the variables: CLIENT_ID, BACKEND_CLIENT_ID, BACKEND_CLIENT_SECRET

Run the sample

This compiles and serves the React app and starts the backend API server on port 3001.

npm run dev

Deployment

Compiles and minifies for production. It will also start up a server on port 3000

npm run prod

pizza42's People

Contributors

aaguiarz avatar adamjmcgrath avatar albertoperdomo avatar alexisluque avatar benlizar avatar chenkie avatar damieng avatar davidpatrick avatar frederikprijck avatar geczy avatar javiertrujillog avatar jimmyjames avatar jmangelo avatar joshcanhelp avatar kjkurtz avatar kurtzilla avatar lbalmaceda avatar luisrudge avatar lukeocodes avatar paulioceano avatar peterblazejewicz avatar rafanog avatar saltukalakus avatar snyk-bot avatar stevehobbsdev avatar thameera avatar twistedstream avatar tylerzey avatar vmartynets avatar widcket avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.