https://github.com/bugfender/bugfendersdk-react-sample
https://github.com/bugfender/bugfendersdk-react-sample
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bugfender/bugfendersdk-react-sample
- Owner: bugfender
- Created: 2020-05-26T11:24:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T10:38:29.000Z (about 1 year ago)
- Last Synced: 2025-01-08T16:02:20.688Z (5 months ago)
- Language: JavaScript
- Size: 2.29 MB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bugfender
[Bugfender](https://bugfender.com) is a game-changing platform that logs every detail your users experience and feeds the data straight to an easy-to-use web console. Bugfender SDK is multi-platform and available for mobile and web apps, so you can use the same tool for all your apps.
## Bugfender SDK React Sample
This repository contains a sample React application with Bugfender SDK to collect user logs.
### Running the app
To check the app in your local machine, first you need to edit the code on `src/index.js` and change the `` for you Bugfender App Key. Then you can run the app using:
- Ensure Node.js 12 is installed on your system.
- `npm ci`
- `npm start`_You can get an app key at [bugfender.com](https://bugfender.com/)_
## Links
- [Official React SDK Docs](https://docs.bugfender.com/docs/platforms/web-apps/bugfender-for-react/)
- [Bugfender JS SDK reference documentation](https://js.bugfender.com/)If you plan to use Bugfender SDK with another JavaScript framework, check the following documentation:
- [Vanilla JavaScript](https://docs.bugfender.com/docs/platforms/web-apps/bugfender-for-javascript-on-browsers/): Bugfender SDK for browsers
- [Angular](https://docs.bugfender.com/docs/platforms/web-apps/bugfender-for-angular/): Bugfender SDK for Angular
- [Vue](https://docs.bugfender.com/docs/platforms/web-apps/bugfender-for-vue/): Bugfender SDK for Vue
- [Svelte](https://docs.bugfender.com/docs/platforms/web-apps/bugfender-for-svelte/): Bugfender SDK for Svelte## Bugfender Quick Start Guide
To get Bugfender working on your apps, you will need to:
- Get an app key at [bugfender.com](https://bugfender.com/)
- `npm i @bugfender/sdk`. Install SDK npm package.
- Init Bugfender SDK in your `index.js` file before calling `ReactDOM.render()`:```typescript
Bugfender.init({
appKey: '',
// apiURL: 'https://api.bugfender.com',
// baseURL: 'https://dashboard.bugfender.com',
// overrideConsoleMethods: true,
// printToConsole: true,
// registerErrorHandler: true,
// logBrowserEvents: true,
// logUIEvents: true,
// version: '',
// build: '',
});Bugfender.log('Hello world!');
```
**⚠️ Remember to change ``** with the app key of your app. It's also recommended to add version & build numbers.