This repository was archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Add bundled example project #7
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| example | ||
| examples |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| .DS_Store | ||
| node_modules | ||
| /dist | ||
|
|
||
| # local env files | ||
| .env.local | ||
| .env.*.local | ||
|
|
||
| # Log files | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
|
|
||
| # Editor directories and files | ||
| .idea | ||
| .vscode | ||
| *.suo | ||
| *.ntvs* | ||
| *.njsproj | ||
| *.sln | ||
| *.sw* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Bugsnag: Vue.js bundled example | ||
|
|
||
| This example shows how you can use the Bugsnag JavaScript notifier with | ||
| [Vue.js](https://vuejs.org/) that has a build step. Beyond the features shown in | ||
| the [basic example](../basic), this setup shows how to initialize a `bugsnagClient` in a module | ||
| that you can reuse in various parts of your application. | ||
|
|
||
| This application was generated with [vue-cli](https://github.com/vuejs/vue-cli). | ||
|
|
||
| ## Setup | ||
|
|
||
| Try this out with [your own Bugsnag account](https://app.bugsnag.com/user/new)! | ||
| You'll be able to see how the errors are reported in the dashboard, how breadcrumbs | ||
| are left, how errors are grouped and how they relate to the original source. | ||
|
|
||
| To get set up, follow the instructions below. Don't forget to replace the placeholder | ||
| API token with your own! | ||
|
|
||
| 1. Clone the repo and `cd` into this directory: | ||
| ```sh | ||
| git clone git@github.com:bugsnag/bugsnag-vue.git | ||
| cd bugsnag-vue/examples/bundled | ||
| ``` | ||
| 1. Install the dependencies (with either npm or yarn): | ||
| ```sh | ||
| npm i | ||
| ``` | ||
| ```sh | ||
| yarn | ||
| ``` | ||
| 1. Replace the `API_KEY` placeholder in [src/lib/bugsnag.js](src/lib/bugsnag.js) with your actual API key. | ||
| 1. Start the bundler and web server: | ||
| ```sh | ||
| npm run serve | ||
| ``` | ||
| 1. View the example page which will (most likely) be served at: http://localhost:8080/ | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does a user get their own API key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a link in the paragraphs above to create a new user. For existing users, there isn't a predictable link to get the api key because the url path contains the project slug. I guess we could be verbose here and give instructions, but I think that might be overkill?