-
Notifications
You must be signed in to change notification settings - Fork 0
REST Client #28
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
Open
Sepulator
wants to merge
259
commits into
main
Choose a base branch
from
develop
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
REST Client #28
Changes from all commits
Commits
Show all changes
259 commits
Select commit
Hold shift + click to select a range
e848107
refactor: add prettier check sript to ci
IlinJoy dc9f70f
style: add line break for codeowners
IlinJoy 03f6b64
fix: update node version
IlinJoy dc1a9f4
chore: add pull request template
anastanei 98005ef
Merge pull request #2 from Sepulator/feat/add-workflows
IlinJoy bb32b84
chore: update vscode settings
Sepulator 4558f7b
Merge branch 'develop' into hero-ui
Sepulator b85901b
chore: perttier fixes
Sepulator 740769a
Merge branch 'hero-ui' of github.com:Sepulator/rest-client-app into h…
Sepulator 186459a
chore: vitest config
Sepulator abdc137
Merge pull request #1 from Sepulator/hero-ui
Sepulator 785b070
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy 83d297d
chore: add stylelint
anastanei 2dc8169
chore: add type-check script
anastanei 6e707c4
feat: add clsx to dependences
IlinJoy 91c93d5
feat: update next js config
IlinJoy 9132a61
Merge branch 'develop' into chore/pr-template-and-linting-improvement
anastanei fd7e324
chore: add eslint rules for test files
anastanei c977b59
chore: add husky on pre-push
anastanei f4119a7
chore: add @rollup/rollup-linux-x64-gnu dependendies
anastanei f1538fa
feat: add base routing
IlinJoy 4e27e7f
chore: remove redundant self-check line
anastanei 224503e
feat: add folder structure
IlinJoy 366cd63
refactor: nav links
IlinJoy f60e2dc
feat: add not-found for local routes
IlinJoy 3a5c663
Merge pull request #3 from Sepulator/chore/pr-template-and-linting-im…
anastanei f69c9cb
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy e9f15fa
chore: add intl rules for eslint
IlinJoy 8ad6226
refactor: add NextIntlClientProvider to providers
IlinJoy d404b52
refactor: fix eslint errors
IlinJoy ae6bf9c
docs: update readme
Sepulator 273c669
chore: remove build turbopack
Sepulator 2fa253a
Apply suggestion from @gemini-code-assist[bot]
Sepulator 6f76b92
Apply suggestion from @gemini-code-assist[bot]
Sepulator 0b83faf
fix: regenerate package-lock.json
Sepulator c73fe05
Merge branch 'chore/readme' of github.com:Sepulator/rest-client-app i…
Sepulator d99a465
Merge pull request #16 from Sepulator/chore/readme
Sepulator 9a29964
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy d0af13c
fix: package.json
IlinJoy 6f4568d
fix: update package-lock.json
IlinJoy 4dbde4c
fix: update gh worckflow
IlinJoy 5f4ee4b
Merge pull request #4 from Sepulator/feat/add-base-routing-folder-str…
IlinJoy e47affc
chore: remove linting during builds
anastanei c021582
feat: add workflow
IlinJoy ba8a510
feat: add form component
anastanei 0cb94bd
refactor: add clarification to the temp button
IlinJoy d074c96
chore: add i18n rules
IlinJoy 1aa6a7a
Merge pull request #18 from Sepulator/feat/add-add-reviewers-workflow
IlinJoy 50e0b9d
feat: add form validation
anastanei cb905e4
feat: add password strength
anastanei 2aabef5
refactor: refactor auth-form structure
anastanei cbddd32
feat: add sign in and sign up layouts
anastanei 45b6bf9
test: add password input tests
anastanei 27d38c6
test: add auth form rendering and email tests
anastanei 88d9b92
refactor: add useSchemas hook
anastanei 5982d18
refactor: refactor password field
anastanei aab0f74
test: add auth-form tests
anastanei f0f1dc1
refactor: refactor password
anastanei a2943df
fix: fix tests
anastanei 5881fbd
chore: fix linting rules
anastanei 03ecc1b
chore: remove random code from tsconfig
anastanei 793771d
fix: fix password type and visibility
anastanei a221d48
fix: fix password type and visibility
anastanei 5178a1b
test: add unicode character case
anastanei 4f6028b
feat: add header
IlinJoy 1fd8f82
feat: update side nav
IlinJoy d6a65bd
feat: add main content
IlinJoy 3864cc3
feat: add method selector, input and submit form
Sepulator 19f0851
refactor: remove redundant fragment
anastanei 7abdec4
refactor: extract components props into separate types
anastanei d6f22e9
style: add empty lines between test blocks
anastanei a17b57f
refactor: reorder hooks, effects and handlers for consistency
anastanei 170c819
fix: combine heroui link with intl link
anastanei 633d788
refactor: refactor rhf handleSubmit usage and fix tests
anastanei d817026
refactor: add email placeholder constant
anastanei e2efd59
feat: add sidebar
IlinJoy 6f74b8d
feat: add header input, split logic
Sepulator 5fa440e
feat: add themes
IlinJoy 88fb83a
feat: refactor components via theme
IlinJoy 7e697a4
feat: add footer
IlinJoy 8aeaca3
fix: header on scroll restoration
IlinJoy 5b0e352
test: add renderWithProviders
anastanei 004a53b
refactor: define default icon props
anastanei da3565a
refactor: use cn from heroui
anastanei 01666c1
refactor: add renderWithUserEvent
anastanei 5170470
feat: add request body editor
Sepulator 95510df
test: add additional tests for use-strength
anastanei 17a5860
refactor: fix linter errors
anastanei c82be3f
feat: add json and plain text request body switcher
Sepulator d2d4494
feat: add internalization
IlinJoy c881d59
fix: styles
IlinJoy 9f27cfd
refactor: move icon default props to constants folder
IlinJoy 099df3f
feat: add tests to footer
IlinJoy bd722cd
feat: auth-form
anastanei b7d2f76
4e1f421
feat: add auth provider
IlinJoy aadb62b
refactor: update components with auth provider
IlinJoy 67bc416
feat: add response section
Sepulator 0e5dd19
chore: remove duplication, change random ID to crypto.UUID
Sepulator 6295d29
Merge branch 'develop' into feature/endpoint-url-methods
Sepulator f4c68a4
chore: correct package json
Sepulator d77974c
chore: move rest client's components to own folder
Sepulator d0673f4
feat: add header tests
IlinJoy 9f5542f
feat: add lazy loading and spinner
Sepulator 5ea93f1
feat: add tests to home screen
IlinJoy d762b46
test: request form tests
Sepulator 90d0206
feat: add useSrollState tests
IlinJoy 9b0e0d0
feat: add EN translation
Sepulator acd4c45
feat: add sidebar tests
IlinJoy 98c2135
feat: add test for getDayOfWeak
IlinJoy af52e4c
feat: make server calls to api
Sepulator 2fae685
feat: setup MSW, add api calls tests
Sepulator 2b972f8
feat: add tests for request body editor
Sepulator 4004975
style: rename signUp key
IlinJoy 7c815a0
refactor: home and sidebar tests
IlinJoy 9621935
fix: update styles remove theme colors
IlinJoy 861b74c
fix: intro description message
IlinJoy e94e683
fix: provide mock user data conditionally on dev mode
IlinJoy ae6986b
fix: update base heading styles
IlinJoy 5cfd845
refactor: rename safeSource util
IlinJoy 4d9e769
refactor: extract IntlProvider to server component
IlinJoy ca7f2a3
fix: restore package-lock
IlinJoy 445d213
feat: add scrollbar-gutter
IlinJoy ab84aa1
fix: make logo clickable
IlinJoy b544c97
chore: remove unused code
Sepulator 9a0b637
fix: curly rule correctly works
Sepulator 87f5118
fix: pull request reviews implementation
Sepulator 728f8ca
test: support assert headers
Sepulator f7fcb44
refactor: adjust classes
IlinJoy a8c2e73
Merge pull request #21 from Sepulator/feat/add-main-layout
IlinJoy 4c08086
Merge branch 'develop' into feature/endpoint-url-methods
Sepulator 3ac2020
test: missed check asset headers
Sepulator 5de53b0
Merge pull request #20 from Sepulator/feature/endpoint-url-methods
Sepulator a9f6420
feat: add variables form
IlinJoy 4860f58
feat: add store and validation
IlinJoy b242d39
feat: debounce for inputs
IlinJoy e8a1b3f
feat: update validation schema and triger validayion on mount
IlinJoy 99feed1
refactor: form elements
IlinJoy e7b70c5
feat: add replacement for variables
IlinJoy effe075
feat: add route generator
Sepulator 3edef9b
feat: adapt request form to initial params, add rest params for clien…
Sepulator c7ccae8
refactor: remove validation
IlinJoy 6340f48
feat: decode url, headers and body on initialization
Sepulator 0c47ad2
refactor: one client page handle route
Sepulator b5b14d5
chore: move parsing to standalone function
Sepulator de62b9a
test: route generator test cases
Sepulator 5581066
feat: add tooltip
IlinJoy 3652203
feat: add reset variabbles
IlinJoy 0a56824
test: add get parameters test cases
Sepulator fb58fdf
feat: add dinamic loading
IlinJoy b2ae59e
fix: ids in variables store
IlinJoy e6bef78
feat: add titles for icon buttons and links
IlinJoy b642bdc
chore: code readability improvement
Sepulator 417a1c3
fix: check method and body from URL
Sepulator ca83131
test: add additional test cases
Sepulator c4d46e4
fix: use entries to map headers
Sepulator 2643db1
feat: add tests to storage
IlinJoy c5edd2c
feat: add variables test
IlinJoy bc4adb8
feat: add input row test
IlinJoy 8dd1c76
feat: add useReplaceWithVariable test
IlinJoy d7943d2
fix: add loading state when variables are not hydrateted
IlinJoy cec2035
feat: add sync for cross tabs
IlinJoy 6786491
refactor: replace components with shared
IlinJoy 8e21819
fix: store rehydrate
IlinJoy c71af2e
fix: update eslint restrict-template-expressions rule
IlinJoy 90944f6
feat: add code generator with syntax highlights
Sepulator 18e00cf
feat: add not-found page
IlinJoy e1f8faf
refactor: pull request review fixes to achive consistent logic
Sepulator da21ae8
feat: add root not-found
IlinJoy 74ac1f8
feat: add mode switcher
Sepulator 3a621b8
Merge pull request #24 from Sepulator/feat/variables
IlinJoy bfbcf5e
Merge branch 'develop' into feature/code-generator
Sepulator d57bcec
test: fix broken test after tabs refactoring
Sepulator e24bb3b
refactor: move hooks state to store
Sepulator 752dde7
refactor: standalone request body switcher
Sepulator f614862
refactor: move submit form logic to standalone component
Sepulator 6d43f66
Merge pull request #25 from Sepulator/feature/code-generator
Sepulator a21d7d2
refactor: use store in stadalone components
Sepulator 4b5de93
refactor: not found pages
IlinJoy 8fbbfb5
feat: add error boundaries
IlinJoy b89b9d1
fix: adopt broken tests to work with store
Sepulator 881e6cc
refactor: adopt deleted test for hook use-http-request to work with s…
Sepulator 114df0f
6fc93a6
fix: add fixes from previous pull request, additional errors messages
Sepulator 2e21854
feat: add toasts
IlinJoy 654ba69
fix: tests errors
IlinJoy bd20222
fix: toasts timeout
IlinJoy 86c4915
refactor: fallback ui
IlinJoy 2ea6907
refactor: not found ui
IlinJoy 636d32a
Merge pull request #27 from Sepulator/feat/extra-pages
IlinJoy 301193b
fix: prettify response body, additional errors
Sepulator 6bcbc95
refactor: move error message to en.json, change if else to switch
Sepulator a70c23b
Merge branch 'develop' into refactor/store-error-messages
Sepulator ebad984
fix: display error in response section
Sepulator 808a2b7
fix: display toast on current error
Sepulator 2188ca7
test: store additional test cases
Sepulator 9ad4d5a
Merge pull request #26 from Sepulator/refactor/store-error-messages
Sepulator 1a6158e
feat: add history ui
IlinJoy f0604b8
feat: add history tests
IlinJoy ddf2b51
refactor: update localization
IlinJoy 67f13d3
refactor: update history test
IlinJoy edd10b0
feat: add supabse authentication
Sepulator 4d33f19
feat: add ids for history data
IlinJoy ff28c4e
feat: add new locale
IlinJoy 1497349
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy 6e8b36c
feat: adpot official supabase guide to set up auth
Sepulator 71b1701
feat: fix broken test
Sepulator 76deffc
feat: add localization to toasts
IlinJoy dd7398d
fix: localize code snippet error text
IlinJoy 26d2b0d
fix: tests for header
IlinJoy b5ef5cd
refactor: base locale in route
IlinJoy 78c6d8b
refactor: fix localization message
IlinJoy 6c54aa5
fix: remove user name, trim headers
Sepulator 970c700
fix: add localization for auth-nav
IlinJoy 6e20213
feat: add localization for sign in and sign up page
IlinJoy b2a9386
fix: header test
IlinJoy 936cffb
feat: integrate next-intl with supabase
Sepulator ee2c334
Merge pull request #30 from Sepulator/feat/add-new-locale
Sepulator f6591f8
Merge pull request #29 from Sepulator/feat/hystory-ui
Sepulator 02ec725
Merge pull request #31 from Sepulator/feature/supabase-history
Sepulator 7b334d9
fix: handle proper authentication
Sepulator 4cdfec4
Merge pull request #32 from Sepulator/fix/proxy-route
Sepulator 040805b
feat: add saving for database
IlinJoy e9314a1
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy 92308d4
feat: add fetching from database
IlinJoy ecb2ebe
fix: headers from database
IlinJoy e2bb9ea
test: pages tests to achive code coverage
Sepulator bcd7900
test: pull request review fixes
Sepulator f4451b4
feat: add formating for history
IlinJoy a7e465c
Merge pull request #33 from Sepulator/tests/code-coverage
Sepulator 419b76e
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy 8406caa
docs: update readme
Sepulator d41b801
fix: test errors
IlinJoy df1da19
docs: revert .env ignore pattern
Sepulator e1517f0
Merge pull request #34 from Sepulator/docs/update-readme
Sepulator bf60971
refactor: fetch history
IlinJoy 7f33f73
refactor: history item
IlinJoy 4de9768
Merge pull request #35 from Sepulator/feat/history-integration
IlinJoy b1c5bc6
fix: save request body to hostory table, reset response
Sepulator 95617db
fix: revert clearing response on initialize
Sepulator 8a39f40
fix: revert clearing response on initialize
Sepulator 9e11a5d
Merge branch 'fix/clear-response-on-url' of github.com:Sepulator/rest…
Sepulator 8b83d3d
fix: not reset response
Sepulator 040bb49
Merge pull request #37 from Sepulator/fix/clear-response-on-url
Sepulator 00f078a
fix: pull request review fixes
Sepulator aca9f17
fix: display values in code generator, clear response
Sepulator 0b8e936
feat: not write variables in server
Sepulator 5569b45
fix: replace vairables before json stringify
Sepulator 2bfae4e
fix: correct calculation body size for code genrator
Sepulator d31c0f4
Merge pull request #39 from Sepulator/fix/collection-of-bugfix
Sepulator 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,4 @@ | ||
| # Supabase Configuration | ||
| # Get these values from your Supabase Dashboard -> Settings -> API | ||
| NEXT_PUBLIC_SUPABASE_URL=https://your-project-id.supabase.co | ||
| NEXT_PUBLIC_SUPABASE_ANON_KEY=your-legacy-api-key-here |
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 @@ | ||
| @Sepulator @anastanei @SpaNb4 @IlinJoy |
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,22 @@ | ||
| # Type of PR 🍩 | ||
|
|
||
| - [ ] Feature | ||
| - [ ] Bugfix | ||
| - [ ] Hotfix | ||
| - [ ] Refactoring | ||
| - [ ] Documentation | ||
| - [ ] Infrastructure | ||
|
|
||
| ## Changes Introduced 🥯 | ||
|
|
||
| - Implemented: [feature name] (mention addition functionality if relevant) | ||
| - Refactored: [Component/Module] (explain reasoning if significant) | ||
| - Fixed: [Bug description] (include error references if applicable) | ||
| - Updated: [Documentation/Configuration] (specify locations) | ||
|
|
||
| ### Self-Check ✅ | ||
|
|
||
| - [ ] No console errors (except API requests) | ||
| - [ ] 80%+ test coverage | ||
| - [ ] Documentation updated (if relevant) | ||
| - [ ] Package.json scripts updated (if relevant) |
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,38 @@ | ||
| name: Add reviewers | ||
| on: | ||
| pull_request: | ||
| types: [opened, ready_for_review, synchronize] | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| add-reviews: | ||
| runs-on: ubuntu-latest | ||
| if: ${{ !github.event.pull_request.draft }} | ||
| steps: | ||
| - uses: actions/github-script@v7.0.1 | ||
| with: | ||
| script: | | ||
| try { | ||
| const {user, requested_reviewers} = context.payload.pull_request | ||
| const author = user.login; | ||
|
|
||
| const reviewers = ['Sepulator', 'anastanei', 'SpaNb4', 'IlinJoy']; | ||
| const existingReviewers = requested_reviewers.map(reviewer => reviewer.login); | ||
|
|
||
| const newReviewers = reviewers.filter(reviewer => | ||
| reviewer !== author && !existingReviewers.includes(reviewer) | ||
| ); | ||
|
|
||
| if (newReviewers.length) { | ||
| await github.rest.pulls.requestReviewers({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| pull_number: context.issue.number, | ||
| reviewers: newReviewers | ||
| }); | ||
| } | ||
| } catch (error) { | ||
| console.error(error.message); | ||
| } |
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,34 @@ | ||
| name: CI | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - develop | ||
|
|
||
| env: | ||
| NODE_VERSION: 22.x | ||
|
|
||
| jobs: | ||
| run-ci: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Get repo code | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Use Node.js | ||
| uses: actions/setup-node@v4.4.0 | ||
| with: | ||
| node-version: ${{ env.NODE_VERSION }} | ||
|
|
||
| - uses: bahmutov/npm-install@v1 | ||
|
|
||
| - name: Run formatter | ||
| run: npm run format:check | ||
|
|
||
| - name: Run typegen | ||
| run: npm run type | ||
|
|
||
| - name: Run linter | ||
| run: npm run lint | ||
|
|
||
| - name: Run tests | ||
| run: npm run test |
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,42 @@ | ||
| # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
|
||
| # dependencies | ||
| /node_modules | ||
| /.pnp | ||
| .pnp.* | ||
| .yarn/* | ||
| !.yarn/patches | ||
| !.yarn/plugins | ||
| !.yarn/releases | ||
| !.yarn/versions | ||
| !.env.example | ||
|
|
||
| # testing | ||
| /coverage | ||
|
|
||
| # next.js | ||
| /.next/ | ||
| /out/ | ||
|
|
||
| # production | ||
| /build | ||
|
|
||
| # misc | ||
| .DS_Store | ||
| *.pem | ||
|
|
||
| # debug | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| .pnpm-debug.log* | ||
|
|
||
| # env files (can opt-in for committing if needed) | ||
| .env* | ||
|
|
||
| # vercel | ||
| .vercel | ||
|
|
||
| # typescript | ||
| *.tsbuildinfo | ||
| next-env.d.ts |
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 @@ | ||
| npx --no -- commitlint --edit ${1} |
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 @@ | ||
| npx lint-staged |
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 @@ | ||
| npm run test && npm run lint && npm run type-check |
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,9 @@ | ||
| { | ||
| "singleQuote": true, | ||
| "tabWidth": 2, | ||
| "trailingComma": "es5", | ||
| "printWidth": 120, | ||
| "semi": true, | ||
| "arrowParens": "always", | ||
| "plugins": ["prettier-plugin-tailwindcss"] | ||
| } |
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,2 @@ | ||
| dist | ||
| node_modules |
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,12 @@ | ||
| { | ||
| "recommendations": [ | ||
| // ESLint/Prettier formatter | ||
| "esbenp.prettier-vscode", | ||
| // ESLint support to VSCode | ||
| "dbaeumer.vscode-eslint", | ||
| // Tailwind CSS autocomplete and more | ||
| "bradlc.vscode-tailwindcss", | ||
| // Testing | ||
| "vitest.explorer" | ||
| ] | ||
| } |
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,22 @@ | ||
| { | ||
| // Formatting using Prettier by default for all languages | ||
| "editor.defaultFormatter": "esbenp.prettier-vscode", | ||
| // Formatting using Prettier for JavaScript, overrides VSCode default. | ||
| "[javascript]": { | ||
| "editor.defaultFormatter": "esbenp.prettier-vscode" | ||
| }, | ||
| // Linting using ESLint. | ||
| "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"], | ||
| // Tell VS Code to always open .css files in Tailwind CSS mode: | ||
| "files.associations": { | ||
| "*.css": "tailwindcss" | ||
| }, | ||
| //Fix eslint auto-fixable problems on save a file | ||
| "editor.codeActionsOnSave": { | ||
| "source.fixAll": "explicit" | ||
| }, | ||
| "eslint.useFlatConfig": true, | ||
| // Ensure enough terminal history is preserved when running tests. | ||
| "terminal.integrated.scrollback": 10000, | ||
| "cSpell.words": ["heroui"] | ||
| } |
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,130 @@ | ||
| # rest-client-app | ||
| # REST Client 🌐 | ||
|
|
||
| Welcome to our `REST Client` application! This lightweight alternative to Postman combines essential features in one app. | ||
| Supports authorization and authentication capabilities. Access to the tool is restricted to authorized users only. | ||
| The history section provides quick access to previously executed requests 🚀. | ||
| Full task description [rest client](https://github.com/rolling-scopes-school/tasks/blob/master/react/modules/tasks/final.md) | ||
|
|
||
| ## Features | ||
|
|
||
| Key pages in the application include: | ||
|
|
||
| - Login and Registration pages 👤 | ||
| - Main page 🏠 | ||
| - RESTful client 🖥️, which includes: | ||
| - method selector | ||
| - text input for the endpoint URL | ||
| - request editor | ||
| - headers editor | ||
| - response section | ||
| - generated code section | ||
| - Variables 🔎 | ||
| - History 📋 | ||
|
|
||
| The application is developed in teams of three 👩💻👩💻👨💻 [Maria Ilina](https://github.com/IlinJoy), [Anastasiia Nikonova](https://github.com/anastanei), [Yuri S.](https://github.com/Sepulator). | ||
|
|
||
| ## Tech-stack | ||
|
|
||
| - ⚡ [Next.js](https://nextjs.org/): The React Framework for the Web. | ||
| - 💪 [Strongly typed](https://www.typescriptlang.org/): Uses TypeScript. | ||
| - 🔥 [HeroUI](https://www.heroui.com/): Beautiful, fast and modern React UI library. | ||
| - 🤖 [Valibot](https://valibot.dev/): The modular and type safe schema library. | ||
| - 🎊 [Tailwind](https://tailwindcss.com/): Rapidly build modern websites without ever leaving your HTML. | ||
| - ⌨️ [Testing framework](https://vitest.dev/): Vitest to test the code base. It's fast! | ||
| - 🛍️ [Supabase](https://supabase.com/): The Postgres development platform. | ||
| - 🐒 [React CodeMirror](https://uiwjs.github.io/react-codemirror/): CodeMirror component for React. | ||
| - 📝 [React Hook Form](https://react-hook-form.com/): Performant, flexible and extensible forms with easy-to-use validation. | ||
| - 🐻 [Zustand](https://zustand-demo.pmnd.rs/): small, fast, and scalable bearbones state management solution. | ||
|
|
||
| ## Getting Started | ||
|
|
||
| ### Steps | ||
|
|
||
| #### 0. Supabase Configuration | ||
|
|
||
| - Get `Project URL` and `API Key` from Supabase Dashboard -> Project Overview -> Project API. | ||
| - Rename `.env.example` to `.env` and copy `Project URL` with `API Key`. | ||
| - Turn off `Confirm email` in Supabase Dashboard -> Authentication -> Sign In / Providers. | ||
|
|
||
| ```dotenv copy | ||
| NEXT_PUBLIC_SUPABASE_URL=https://your-project-id.supabase.co | ||
| NEXT_PUBLIC_SUPABASE_ANON_KEY=your-legacy-api-key-here | ||
| ``` | ||
|
|
||
| #### 1. Clone [repository](https://github.com/Sepulator/rest-client-app) | ||
|
|
||
| ```bash copy | ||
| git clone https://github.com/Sepulator/rest-client-app.git | ||
| ``` | ||
|
|
||
| #### 2. Open project directory and install dependencies | ||
|
|
||
| ```bash copy | ||
| npm install | ||
| ``` | ||
|
|
||
| #### 3. Start the development server | ||
|
|
||
| ```bash copy | ||
| npm run dev | ||
| ``` | ||
|
|
||
| This command starts the dev server locally `http://localhost:3000/`. | ||
|
|
||
| ### Available scripts | ||
|
|
||
| #### Build for production | ||
|
|
||
| ```bash copy | ||
| npm run build | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| #### Start Vite dev server in the current directory | ||
|
|
||
| ```bash copy | ||
| npm run dev | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| #### Run ESLint to fix errors | ||
|
|
||
| ```bash copy | ||
| npm run lint | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| #### Run unit test | ||
|
|
||
| ```bash copy | ||
| npm run test | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| #### Unit test coverage | ||
|
|
||
| ```bash copy | ||
| npm run test:coverage | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| #### Run code format with Prettier | ||
|
|
||
| ```bash copy | ||
| npm run format | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| #### Run husky to prepare git hooks | ||
|
|
||
| ```bash copy | ||
| npm run prepare | ||
| ``` | ||
|
|
||
| --- | ||
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.
The script
npm run formatmentioned in the documentation does not exist inpackage.json. The available scripts for formatting areformat:fixandformat:check. Please update the README to reflect the correct script name to avoid confusion for developers setting up the project.