-
Notifications
You must be signed in to change notification settings - Fork 138
Add guides for error handling, rate limiting, testing patterns, and structured logging in Fiber v3 #517
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
Merged
Merged
Add guides for error handling, rate limiting, testing patterns, and structured logging in Fiber v3 #517
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
dc1cf0d
Add guides for error handling, rate limiting, testing patterns, and s…
ReneWerner87 0141af0
Enhance error handling and rate limiting guides for Fiber v3
ReneWerner87 65855c1
Add spell check workflow and configuration for improved code quality
ReneWerner87 32be962
Merge branch 'master' into more-blog-entries
ReneWerner87 98e391e
Enhance spell check configuration and add Makefile for development tasks
ReneWerner87 0921262
Merge remote-tracking branch 'origin/more-blog-entries' into more-blo…
ReneWerner87 eba9b31
Update spell-check configuration to include blog and src directories
ReneWerner87 d88cc53
Use npx to run markdownlint-cli2 for blog markdown files
ReneWerner87 464bc0e
Update links in blog entries to use relative paths
ReneWerner87 afe821f
Update blog entries to use absolute paths for internal references
ReneWerner87 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 |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| { | ||
| "version": "0.2", | ||
| "language": "en, en-gb, en-us", | ||
| "useGitignore": true, | ||
| "caseSensitive": false, | ||
| "import": [ | ||
| "@cspell/dict-en_us/cspell-ext.json", | ||
| "@cspell/dict-en-gb/cspell-ext.json", | ||
| "@cspell/dict-software-terms/cspell-ext.json", | ||
| "@cspell/dict-golang/cspell-ext.json", | ||
| "@cspell/dict-fullstack/cspell-ext.json", | ||
| "@cspell/dict-docker/cspell-ext.json", | ||
| "@cspell/dict-k8s/cspell-ext.json", | ||
| "@cspell/dict-node/cspell-ext.json", | ||
| "@cspell/dict-npm/cspell-ext.json", | ||
| "@cspell/dict-typescript/cspell-ext.json", | ||
| "@cspell/dict-html/cspell-ext.json", | ||
| "@cspell/dict-css/cspell-ext.json", | ||
| "@cspell/dict-shell/cspell-ext.json", | ||
| "@cspell/dict-python/cspell-ext.json", | ||
| "@cspell/dict-redis/cspell-ext.json", | ||
| "@cspell/dict-sql/cspell-ext.json", | ||
| "@cspell/dict-filetypes/cspell-ext.json", | ||
| "@cspell/dict-companies/cspell-ext.json", | ||
| "@cspell/dict-markdown/cspell-ext.json", | ||
| "@cspell/dict-en-common-misspellings/cspell-ext.json", | ||
| "@cspell/dict-people-names/cspell-ext.json" | ||
| ], | ||
| "dictionaries": [ | ||
| "en_us", | ||
| "en-gb", | ||
| "softwareTerms", | ||
| "web-services", | ||
| "networking-terms", | ||
| "software-term-suggestions", | ||
| "software-services", | ||
| "software-terms", | ||
| "software-tools", | ||
| "coding-compound-terms", | ||
| "golang", | ||
| "fullstack", | ||
| "docker", | ||
| "k8s", | ||
| "node", | ||
| "npm", | ||
| "typescript", | ||
| "html", | ||
| "css", | ||
| "shell", | ||
| "python", | ||
| "redis", | ||
| "sql", | ||
| "filetypes", | ||
| "companies", | ||
| "markdown", | ||
| "en-common-misspellings", | ||
| "people-names", | ||
| "data-science", | ||
| "data-science-models", | ||
| "data-science-tools", | ||
| "project-words" | ||
| ], | ||
| "dictionaryDefinitions": [ | ||
| { | ||
| "name": "project-words", | ||
| "path": "./project-words.txt", | ||
| "addWords": true | ||
| } | ||
| ], | ||
| "files": [ | ||
| "blog/**", | ||
| "src/**" | ||
| ], | ||
| "ignorePaths": [ | ||
| "**/*.svg", | ||
| "**/*.png", | ||
| "**/*.jpg", | ||
| "**/*.jpeg", | ||
| "**/*.gif", | ||
| "**/*.ico", | ||
| "**/*.lock" | ||
| ] | ||
| } |
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,70 @@ | ||
| name: Spell check | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| - ready_for_review | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
|
|
||
| jobs: | ||
| cspell: | ||
| name: cspell | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version: "20.x" | ||
|
|
||
| - name: Install cspell dictionaries | ||
| run: | | ||
| npm install --no-save \ | ||
| @cspell/dict-en_us \ | ||
| @cspell/dict-en-gb \ | ||
| @cspell/dict-software-terms \ | ||
| @cspell/dict-golang \ | ||
| @cspell/dict-fullstack \ | ||
| @cspell/dict-docker \ | ||
| @cspell/dict-k8s \ | ||
| @cspell/dict-node \ | ||
| @cspell/dict-npm \ | ||
| @cspell/dict-typescript \ | ||
| @cspell/dict-html \ | ||
| @cspell/dict-css \ | ||
| @cspell/dict-shell \ | ||
| @cspell/dict-python \ | ||
| @cspell/dict-redis \ | ||
| @cspell/dict-sql \ | ||
| @cspell/dict-filetypes \ | ||
| @cspell/dict-companies \ | ||
| @cspell/dict-markdown \ | ||
| @cspell/dict-en-common-misspellings \ | ||
| @cspell/dict-people-names \ | ||
| @cspell/dict-data-science | ||
|
|
||
| - name: Run cspell | ||
| uses: streetsidesoftware/cspell-action@de2a73e963e7443969755b648a1008f77033c5b2 # v8.4.0 | ||
| with: | ||
| incremental_files_only: false | ||
| check_dot_files: explicit | ||
| report: typos | ||
| verbose: true | ||
|
|
||
| - name: Run codespell | ||
| uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2 | ||
| with: | ||
| path: blog src | ||
| ignore_words_list: TE,te |
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,55 @@ | ||
| ## help: 💡 Display available commands | ||
| .PHONY: help | ||
| help: | ||
| @echo '⚡️ GoFiber/Docs Development:' | ||
| @sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | ||
|
|
||
| ## install: 📦 Install dependencies | ||
| .PHONY: install | ||
| install: | ||
| npm install | ||
|
|
||
| ## dev: 🚀 Start development server | ||
| .PHONY: dev | ||
| dev: | ||
| npm start | ||
|
|
||
| ## build: 🏗 Build production site | ||
| .PHONY: build | ||
| build: | ||
| npm run build | ||
|
|
||
| ## serve: 🌐 Serve production build locally | ||
| .PHONY: serve | ||
| serve: | ||
| npm run serve | ||
|
|
||
| ## spell: 📝 Run spell check on blog and website source | ||
| .PHONY: spell | ||
| spell: | ||
| npx cspell "blog/**" "src/**" --no-progress | ||
|
|
||
| ## codespell: 📝 Run codespell on blog and website source | ||
| .PHONY: codespell | ||
| codespell: | ||
| codespell blog src --ignore-words-list "TE,te" | ||
|
|
||
| ## markdown: 🎨 Find markdown format issues (Requires markdownlint-cli2) | ||
| .PHONY: markdown | ||
| markdown: | ||
| @which markdownlint-cli2 > /dev/null || npm install -g markdownlint-cli2 | ||
| markdownlint-cli2 "blog/**/*.md" | ||
|
|
||
| ## lint: 🚨 Run all lint checks (spell + markdown) | ||
| .PHONY: lint | ||
| lint: spell codespell markdown | ||
|
ReneWerner87 marked this conversation as resolved.
|
||
|
|
||
| ## format: 🎨 Fix code format issues | ||
| .PHONY: format | ||
| format: | ||
| npx prettier --write "src/**/*.{ts,tsx,scss,css,json}" "blog/**/*.md" | ||
|
|
||
| ## clean: 🧹 Clean build artifacts | ||
| .PHONY: clean | ||
| clean: | ||
| rm -rf build .docusaurus | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.