Skip to content

JSTANBUL Meetup #011: Scaling Exception Handling in SPA’s

Notifications You must be signed in to change notification settings

unalsurmeli/ExceptionHandling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm start or yarn start

Runs the app in development mode. Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.

npm test or yarn test

Runs the test watcher in an interactive mode. By default, runs tests related to files changed since the last commit.

Read more about testing.

npm run build or yarn build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed.

yarn add @sentry/browser

Changed SENTRY_CLIENT_DSN for Sentry init in index.js

import * as Sentry from '@sentry/browser';

Sentry.init({ dsn: "SENTRY_CLIENT_DSN" });

Sentry.withScope(scope => { Object.keys(errorInfo).forEach(key => { scope.setExtra(key, errorInfo[key]); scope.setExtra('userId', Math.random()*1000); }); Sentry.captureException(error); });

yarn add logrocket

Changed LOGROCKET_ORGANIZATION_INFO for LogRocket init in App.js and index.js

import LogRocket from 'logrocket';

LogRocket.init('LOGROCKET_ORGANIZATION_INFO');

Firebase

yarn add firebase-tools

firebase login

firebase init hosting build

? What do you want to use as your public directory? build

? Configure as a single-page app (rewrite all urls to /index.html)? Yes

? File build/index.html already exists. Overwrite? (y/N) N

firebase deploy

https://speakerdeck.com/unalsurmeli/scaling-exception-handling-in-spas-jstanbul-meetup-number-011

About

JSTANBUL Meetup #011: Scaling Exception Handling in SPA’s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published