Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies in todolist example #884

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default [
},

{
files: ['**/*.{js,mjs,cjs}'],
files: ['**/*.{js,jsx,mjs,cjs}'],
...tseslint.configs.disableTypeChecked,
},

Expand All @@ -222,6 +222,23 @@ export default [
},
},
{
ignores: ['**/dist/', '**/node_modules/', '.git/', '.github/', '.idea', '.vscode/', 'examples/**'],
files: ['examples/todolist/src/**/*.{js,jsx}'],
languageOptions: {
globals: {
process: true,
},
},
},
{
ignores: [
'**/dist/',
'**/node_modules/',
'.git/',
'.github/',
'.idea',
'.vscode/',
'examples/installing-npm',
'examples/next-ssr-example',
],
},
]
26 changes: 0 additions & 26 deletions examples/todolist/.eslintrc.js

This file was deleted.

16 changes: 8 additions & 8 deletions examples/todolist/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Example todo application with a node.js backend

This example todo application consists of react frontend app and express backend app.
This example todo application consists of React frontend app and express backend app.

## Try it yourself!

After downloading this folder:

0. If you don't have one already [make a trial account to try out Splunk Observability Cloud](https://www.splunk.com/en_us/observability/o11y-cloud-free-trial.html)
1. Run `npm install`
2. Copy `.env.example` to `.env`
3. Fill out `REACT_APP_RUM_*` with your ingest URL and RUM token
4. Start backend with `npm run backend`
5. Start frontend with `npm run start`
1. If you don't have one already [make a trial account to try out Splunk Observability Cloud](https://www.splunk.com/en_us/observability/o11y-cloud-free-trial.html)
2. Run `npm install`
3. Copy `.env.example` to `.env`
4. Fill out `REACT_APP_RUM_*` with your ingest URL and RUM token
5. Start backend with `npm run backend`
6. Start frontend with `npm run start`

Frontend instrumentation is done in `src/instrumentation.js` which is loaded as the first thing in `src/index.js`. It also demonstrates a few configuration options you can use.
Frontend instrumentation is done in `public/index.html` which is loaded at document load. It also demonstrates a few configuration options you can use.
Loading
Loading