- Copy a file called
- Populate your Auth0 client id, domain and audience.
To run the code in your development environment:
- Clone this repo
- Ensure you are running Node Version LTS Carbon
Now with all dependencies installed
- Start the development server
- Point your browser to http://localhost:8888
To build minified version:
npm run prod
Offline Service Worker Notes
In Chrome, a hard refresh bypasses service workers as per the service worker spec. As such, if you hard refresh a page when offline, the page request will ignore service workers and make a network request.
Additionally, if the application is online, and a hard refresh occurs in any state of the app, the current page will bypass the service worker and will no longer be controlled by the service worker. If going offline immediately after an online hard refresh, the service worker will not control requests and network errors will occur when navigating.
Chrome Dev Tools allow for offline simulation. However, if visiting an offline page by checking "offline" in Chrome Dev Tools, there is an initial period where navigator.onLine will still return true. For true offline testing, it is best to test by disconnecting from your internet connection.