Skip to content

pazel-io/ionic-auth0-react-pwa

Repository files navigation

Ionic Auth0 React PWA

An example project demostrating integration of Auth0 login to an Ionic PWA app.

This demo does not need a plugin.

This project is the example code used for a blog explaining how to do the integration step by step.

https://pazel.dev/ionic-and-auth0-react-pwa-for-web-and-mobile-no-plugin-required

Run Locally

You need to have a Node LTS and Ionic CLI installed.

https://ionicframework.com/docs/intro/cli

https://nodejs.org/en/

Also, you need your Auth0 account to be set up.

Please read my blog about how to do it.

Clone the project

  git clone https://github.com/pazel-io/ionic-auth0-react-pwa.git

Go to the project directory

  cd ionic-auth0-react-pwa

Install dependencies

  npm install

Start the server

  ionic serve

To build

  ionic build

To test PWA you can use npm serve package after having a successfull build. https://www.npmjs.com/package/serve

serve build -p 8100