Skip to content
Open
Show file tree
Hide file tree
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 Sep 3, 2025
dc9f70f
style: add line break for codeowners
IlinJoy Sep 3, 2025
03f6b64
fix: update node version
IlinJoy Sep 3, 2025
dc1a9f4
chore: add pull request template
anastanei Sep 3, 2025
98005ef
Merge pull request #2 from Sepulator/feat/add-workflows
IlinJoy Sep 3, 2025
bb32b84
chore: update vscode settings
Sepulator Sep 3, 2025
4558f7b
Merge branch 'develop' into hero-ui
Sepulator Sep 3, 2025
b85901b
chore: perttier fixes
Sepulator Sep 3, 2025
740769a
Merge branch 'hero-ui' of github.com:Sepulator/rest-client-app into h…
Sepulator Sep 3, 2025
186459a
chore: vitest config
Sepulator Sep 3, 2025
abdc137
Merge pull request #1 from Sepulator/hero-ui
Sepulator Sep 3, 2025
785b070
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy Sep 3, 2025
83d297d
chore: add stylelint
anastanei Sep 3, 2025
2dc8169
chore: add type-check script
anastanei Sep 3, 2025
6e707c4
feat: add clsx to dependences
IlinJoy Sep 3, 2025
91c93d5
feat: update next js config
IlinJoy Sep 3, 2025
9132a61
Merge branch 'develop' into chore/pr-template-and-linting-improvement
anastanei Sep 3, 2025
fd7e324
chore: add eslint rules for test files
anastanei Sep 3, 2025
c977b59
chore: add husky on pre-push
anastanei Sep 3, 2025
f4119a7
chore: add @rollup/rollup-linux-x64-gnu dependendies
anastanei Sep 3, 2025
f1538fa
feat: add base routing
IlinJoy Sep 3, 2025
4e27e7f
chore: remove redundant self-check line
anastanei Sep 3, 2025
224503e
feat: add folder structure
IlinJoy Sep 3, 2025
366cd63
refactor: nav links
IlinJoy Sep 3, 2025
f60e2dc
feat: add not-found for local routes
IlinJoy Sep 3, 2025
3a5c663
Merge pull request #3 from Sepulator/chore/pr-template-and-linting-im…
anastanei Sep 4, 2025
f69c9cb
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy Sep 4, 2025
e9f15fa
chore: add intl rules for eslint
IlinJoy Sep 4, 2025
8ad6226
refactor: add NextIntlClientProvider to providers
IlinJoy Sep 4, 2025
d404b52
refactor: fix eslint errors
IlinJoy Sep 4, 2025
ae6bf9c
docs: update readme
Sepulator Sep 4, 2025
273c669
chore: remove build turbopack
Sepulator Sep 4, 2025
2fa253a
Apply suggestion from @gemini-code-assist[bot]
Sepulator Sep 4, 2025
6f76b92
Apply suggestion from @gemini-code-assist[bot]
Sepulator Sep 4, 2025
0b83faf
fix: regenerate package-lock.json
Sepulator Sep 4, 2025
c73fe05
Merge branch 'chore/readme' of github.com:Sepulator/rest-client-app i…
Sepulator Sep 4, 2025
d99a465
Merge pull request #16 from Sepulator/chore/readme
Sepulator Sep 4, 2025
9a29964
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy Sep 4, 2025
d0af13c
fix: package.json
IlinJoy Sep 4, 2025
6f4568d
fix: update package-lock.json
IlinJoy Sep 4, 2025
4dbde4c
fix: update gh worckflow
IlinJoy Sep 4, 2025
5f4ee4b
Merge pull request #4 from Sepulator/feat/add-base-routing-folder-str…
IlinJoy Sep 4, 2025
e47affc
chore: remove linting during builds
anastanei Sep 5, 2025
c021582
feat: add workflow
IlinJoy Sep 5, 2025
ba8a510
feat: add form component
anastanei Sep 5, 2025
0cb94bd
refactor: add clarification to the temp button
IlinJoy Sep 5, 2025
d074c96
chore: add i18n rules
IlinJoy Sep 5, 2025
1aa6a7a
Merge pull request #18 from Sepulator/feat/add-add-reviewers-workflow
IlinJoy Sep 5, 2025
50e0b9d
feat: add form validation
anastanei Sep 5, 2025
cb905e4
feat: add password strength
anastanei Sep 5, 2025
2aabef5
refactor: refactor auth-form structure
anastanei Sep 5, 2025
cbddd32
feat: add sign in and sign up layouts
anastanei Sep 5, 2025
45b6bf9
test: add password input tests
anastanei Sep 5, 2025
27d38c6
test: add auth form rendering and email tests
anastanei Sep 6, 2025
88d9b92
refactor: add useSchemas hook
anastanei Sep 6, 2025
5982d18
refactor: refactor password field
anastanei Sep 6, 2025
aab0f74
test: add auth-form tests
anastanei Sep 6, 2025
f0f1dc1
refactor: refactor password
anastanei Sep 6, 2025
a2943df
fix: fix tests
anastanei Sep 6, 2025
5881fbd
chore: fix linting rules
anastanei Sep 6, 2025
03ecc1b
chore: remove random code from tsconfig
anastanei Sep 6, 2025
793771d
fix: fix password type and visibility
anastanei Sep 6, 2025
a221d48
fix: fix password type and visibility
anastanei Sep 6, 2025
5178a1b
test: add unicode character case
anastanei Sep 6, 2025
4f6028b
feat: add header
IlinJoy Sep 7, 2025
1fd8f82
feat: update side nav
IlinJoy Sep 7, 2025
d6a65bd
feat: add main content
IlinJoy Sep 7, 2025
3864cc3
feat: add method selector, input and submit form
Sepulator Sep 8, 2025
19f0851
refactor: remove redundant fragment
anastanei Sep 8, 2025
7abdec4
refactor: extract components props into separate types
anastanei Sep 8, 2025
d6f22e9
style: add empty lines between test blocks
anastanei Sep 8, 2025
a17b57f
refactor: reorder hooks, effects and handlers for consistency
anastanei Sep 8, 2025
170c819
fix: combine heroui link with intl link
anastanei Sep 8, 2025
633d788
refactor: refactor rhf handleSubmit usage and fix tests
anastanei Sep 8, 2025
d817026
refactor: add email placeholder constant
anastanei Sep 8, 2025
e2efd59
feat: add sidebar
IlinJoy Sep 8, 2025
6f74b8d
feat: add header input, split logic
Sepulator Sep 8, 2025
5fa440e
feat: add themes
IlinJoy Sep 8, 2025
88fb83a
feat: refactor components via theme
IlinJoy Sep 8, 2025
7e697a4
feat: add footer
IlinJoy Sep 9, 2025
8aeaca3
fix: header on scroll restoration
IlinJoy Sep 9, 2025
5b0e352
test: add renderWithProviders
anastanei Sep 9, 2025
004a53b
refactor: define default icon props
anastanei Sep 9, 2025
da3565a
refactor: use cn from heroui
anastanei Sep 9, 2025
01666c1
refactor: add renderWithUserEvent
anastanei Sep 9, 2025
5170470
feat: add request body editor
Sepulator Sep 9, 2025
95510df
test: add additional tests for use-strength
anastanei Sep 9, 2025
17a5860
refactor: fix linter errors
anastanei Sep 9, 2025
c82be3f
feat: add json and plain text request body switcher
Sepulator Sep 9, 2025
d2d4494
feat: add internalization
IlinJoy Sep 9, 2025
c881d59
fix: styles
IlinJoy Sep 9, 2025
9f27cfd
refactor: move icon default props to constants folder
IlinJoy Sep 9, 2025
099df3f
feat: add tests to footer
IlinJoy Sep 9, 2025
bd722cd
feat: auth-form
anastanei Sep 10, 2025
b7d2f76
IlinJoy Sep 10, 2025
4e1f421
feat: add auth provider
IlinJoy Sep 10, 2025
aadb62b
refactor: update components with auth provider
IlinJoy Sep 10, 2025
67bc416
feat: add response section
Sepulator Sep 10, 2025
0e5dd19
chore: remove duplication, change random ID to crypto.UUID
Sepulator Sep 10, 2025
6295d29
Merge branch 'develop' into feature/endpoint-url-methods
Sepulator Sep 10, 2025
f4c68a4
chore: correct package json
Sepulator Sep 10, 2025
d77974c
chore: move rest client's components to own folder
Sepulator Sep 10, 2025
d0673f4
feat: add header tests
IlinJoy Sep 10, 2025
9f5542f
feat: add lazy loading and spinner
Sepulator Sep 10, 2025
5ea93f1
feat: add tests to home screen
IlinJoy Sep 10, 2025
d762b46
test: request form tests
Sepulator Sep 10, 2025
90d0206
feat: add useSrollState tests
IlinJoy Sep 10, 2025
9b0e0d0
feat: add EN translation
Sepulator Sep 10, 2025
acd4c45
feat: add sidebar tests
IlinJoy Sep 10, 2025
98c2135
feat: add test for getDayOfWeak
IlinJoy Sep 10, 2025
af52e4c
feat: make server calls to api
Sepulator Sep 11, 2025
2fae685
feat: setup MSW, add api calls tests
Sepulator Sep 11, 2025
2b972f8
feat: add tests for request body editor
Sepulator Sep 11, 2025
4004975
style: rename signUp key
IlinJoy Sep 11, 2025
7c815a0
refactor: home and sidebar tests
IlinJoy Sep 11, 2025
9621935
fix: update styles remove theme colors
IlinJoy Sep 11, 2025
861b74c
fix: intro description message
IlinJoy Sep 11, 2025
e94e683
fix: provide mock user data conditionally on dev mode
IlinJoy Sep 11, 2025
ae6986b
fix: update base heading styles
IlinJoy Sep 11, 2025
5cfd845
refactor: rename safeSource util
IlinJoy Sep 11, 2025
4d9e769
refactor: extract IntlProvider to server component
IlinJoy Sep 11, 2025
ca7f2a3
fix: restore package-lock
IlinJoy Sep 11, 2025
445d213
feat: add scrollbar-gutter
IlinJoy Sep 12, 2025
ab84aa1
fix: make logo clickable
IlinJoy Sep 12, 2025
b544c97
chore: remove unused code
Sepulator Sep 12, 2025
9a0b637
fix: curly rule correctly works
Sepulator Sep 12, 2025
87f5118
fix: pull request reviews implementation
Sepulator Sep 12, 2025
728f8ca
test: support assert headers
Sepulator Sep 12, 2025
f7fcb44
refactor: adjust classes
IlinJoy Sep 12, 2025
a8c2e73
Merge pull request #21 from Sepulator/feat/add-main-layout
IlinJoy Sep 12, 2025
4c08086
Merge branch 'develop' into feature/endpoint-url-methods
Sepulator Sep 12, 2025
3ac2020
test: missed check asset headers
Sepulator Sep 12, 2025
5de53b0
Merge pull request #20 from Sepulator/feature/endpoint-url-methods
Sepulator Sep 12, 2025
a9f6420
feat: add variables form
IlinJoy Sep 16, 2025
4860f58
feat: add store and validation
IlinJoy Sep 16, 2025
b242d39
feat: debounce for inputs
IlinJoy Sep 16, 2025
e8a1b3f
feat: update validation schema and triger validayion on mount
IlinJoy Sep 16, 2025
99feed1
refactor: form elements
IlinJoy Sep 16, 2025
e7b70c5
feat: add replacement for variables
IlinJoy Sep 16, 2025
effe075
feat: add route generator
Sepulator Sep 16, 2025
3edef9b
feat: adapt request form to initial params, add rest params for clien…
Sepulator Sep 16, 2025
c7ccae8
refactor: remove validation
IlinJoy Sep 16, 2025
6340f48
feat: decode url, headers and body on initialization
Sepulator Sep 16, 2025
0c47ad2
refactor: one client page handle route
Sepulator Sep 16, 2025
b5b14d5
chore: move parsing to standalone function
Sepulator Sep 17, 2025
de62b9a
test: route generator test cases
Sepulator Sep 17, 2025
5581066
feat: add tooltip
IlinJoy Sep 16, 2025
3652203
feat: add reset variabbles
IlinJoy Sep 17, 2025
0a56824
test: add get parameters test cases
Sepulator Sep 17, 2025
fb58fdf
feat: add dinamic loading
IlinJoy Sep 17, 2025
b2ae59e
fix: ids in variables store
IlinJoy Sep 17, 2025
e6bef78
feat: add titles for icon buttons and links
IlinJoy Sep 17, 2025
b642bdc
chore: code readability improvement
Sepulator Sep 17, 2025
417a1c3
fix: check method and body from URL
Sepulator Sep 17, 2025
ca83131
test: add additional test cases
Sepulator Sep 17, 2025
c4d46e4
fix: use entries to map headers
Sepulator Sep 17, 2025
2643db1
feat: add tests to storage
IlinJoy Sep 17, 2025
c5edd2c
feat: add variables test
IlinJoy Sep 18, 2025
bc4adb8
feat: add input row test
IlinJoy Sep 18, 2025
8dd1c76
feat: add useReplaceWithVariable test
IlinJoy Sep 18, 2025
d7943d2
fix: add loading state when variables are not hydrateted
IlinJoy Sep 18, 2025
cec2035
feat: add sync for cross tabs
IlinJoy Sep 18, 2025
6786491
refactor: replace components with shared
IlinJoy Sep 18, 2025
8e21819
fix: store rehydrate
IlinJoy Sep 18, 2025
c71af2e
fix: update eslint restrict-template-expressions rule
IlinJoy Sep 18, 2025
90944f6
feat: add code generator with syntax highlights
Sepulator Sep 18, 2025
18e00cf
feat: add not-found page
IlinJoy Sep 19, 2025
e1f8faf
refactor: pull request review fixes to achive consistent logic
Sepulator Sep 19, 2025
da21ae8
feat: add root not-found
IlinJoy Sep 19, 2025
74ac1f8
feat: add mode switcher
Sepulator Sep 19, 2025
3a621b8
Merge pull request #24 from Sepulator/feat/variables
IlinJoy Sep 19, 2025
bfbcf5e
Merge branch 'develop' into feature/code-generator
Sepulator Sep 19, 2025
d57bcec
test: fix broken test after tabs refactoring
Sepulator Sep 19, 2025
e24bb3b
refactor: move hooks state to store
Sepulator Sep 19, 2025
752dde7
refactor: standalone request body switcher
Sepulator Sep 19, 2025
f614862
refactor: move submit form logic to standalone component
Sepulator Sep 19, 2025
6d43f66
Merge pull request #25 from Sepulator/feature/code-generator
Sepulator Sep 19, 2025
a21d7d2
refactor: use store in stadalone components
Sepulator Sep 19, 2025
4b5de93
refactor: not found pages
IlinJoy Sep 19, 2025
8fbbfb5
feat: add error boundaries
IlinJoy Sep 19, 2025
b89b9d1
fix: adopt broken tests to work with store
Sepulator Sep 19, 2025
881e6cc
refactor: adopt deleted test for hook use-http-request to work with s…
Sepulator Sep 19, 2025
114df0f
IlinJoy Sep 19, 2025
6fc93a6
fix: add fixes from previous pull request, additional errors messages
Sepulator Sep 20, 2025
2e21854
feat: add toasts
IlinJoy Sep 20, 2025
654ba69
fix: tests errors
IlinJoy Sep 20, 2025
bd20222
fix: toasts timeout
IlinJoy Sep 20, 2025
86c4915
refactor: fallback ui
IlinJoy Sep 20, 2025
2ea6907
refactor: not found ui
IlinJoy Sep 20, 2025
636d32a
Merge pull request #27 from Sepulator/feat/extra-pages
IlinJoy Sep 20, 2025
301193b
fix: prettify response body, additional errors
Sepulator Sep 20, 2025
6bcbc95
refactor: move error message to en.json, change if else to switch
Sepulator Sep 20, 2025
a70c23b
Merge branch 'develop' into refactor/store-error-messages
Sepulator Sep 20, 2025
ebad984
fix: display error in response section
Sepulator Sep 20, 2025
808a2b7
fix: display toast on current error
Sepulator Sep 20, 2025
2188ca7
test: store additional test cases
Sepulator Sep 20, 2025
9ad4d5a
Merge pull request #26 from Sepulator/refactor/store-error-messages
Sepulator Sep 20, 2025
1a6158e
feat: add history ui
IlinJoy Sep 21, 2025
f0604b8
feat: add history tests
IlinJoy Sep 21, 2025
ddf2b51
refactor: update localization
IlinJoy Sep 21, 2025
67f13d3
refactor: update history test
IlinJoy Sep 21, 2025
edd10b0
feat: add supabse authentication
Sepulator Sep 21, 2025
4d33f19
feat: add ids for history data
IlinJoy Sep 21, 2025
ff28c4e
feat: add new locale
IlinJoy Sep 21, 2025
1497349
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy Sep 21, 2025
6e8b36c
feat: adpot official supabase guide to set up auth
Sepulator Sep 21, 2025
71b1701
feat: fix broken test
Sepulator Sep 21, 2025
76deffc
feat: add localization to toasts
IlinJoy Sep 21, 2025
dd7398d
fix: localize code snippet error text
IlinJoy Sep 21, 2025
26d2b0d
fix: tests for header
IlinJoy Sep 21, 2025
b5ef5cd
refactor: base locale in route
IlinJoy Sep 21, 2025
78c6d8b
refactor: fix localization message
IlinJoy Sep 21, 2025
6c54aa5
fix: remove user name, trim headers
Sepulator Sep 21, 2025
970c700
fix: add localization for auth-nav
IlinJoy Sep 21, 2025
6e20213
feat: add localization for sign in and sign up page
IlinJoy Sep 21, 2025
b2a9386
fix: header test
IlinJoy Sep 21, 2025
936cffb
feat: integrate next-intl with supabase
Sepulator Sep 21, 2025
ee2c334
Merge pull request #30 from Sepulator/feat/add-new-locale
Sepulator Sep 21, 2025
f6591f8
Merge pull request #29 from Sepulator/feat/hystory-ui
Sepulator Sep 21, 2025
02ec725
Merge pull request #31 from Sepulator/feature/supabase-history
Sepulator Sep 21, 2025
7b334d9
fix: handle proper authentication
Sepulator Sep 21, 2025
4cdfec4
Merge pull request #32 from Sepulator/fix/proxy-route
Sepulator Sep 21, 2025
040805b
feat: add saving for database
IlinJoy Sep 21, 2025
e9314a1
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy Sep 21, 2025
92308d4
feat: add fetching from database
IlinJoy Sep 21, 2025
ecb2ebe
fix: headers from database
IlinJoy Sep 21, 2025
e2bb9ea
test: pages tests to achive code coverage
Sepulator Sep 21, 2025
bcd7900
test: pull request review fixes
Sepulator Sep 21, 2025
f4451b4
feat: add formating for history
IlinJoy Sep 21, 2025
a7e465c
Merge pull request #33 from Sepulator/tests/code-coverage
Sepulator Sep 21, 2025
419b76e
Merge branch 'develop' of https://github.com/Sepulator/rest-client-ap…
IlinJoy Sep 21, 2025
8406caa
docs: update readme
Sepulator Sep 21, 2025
d41b801
fix: test errors
IlinJoy Sep 21, 2025
df1da19
docs: revert .env ignore pattern
Sepulator Sep 21, 2025
e1517f0
Merge pull request #34 from Sepulator/docs/update-readme
Sepulator Sep 21, 2025
bf60971
refactor: fetch history
IlinJoy Sep 21, 2025
7f33f73
refactor: history item
IlinJoy Sep 21, 2025
4de9768
Merge pull request #35 from Sepulator/feat/history-integration
IlinJoy Sep 21, 2025
b1c5bc6
fix: save request body to hostory table, reset response
Sepulator Sep 21, 2025
95617db
fix: revert clearing response on initialize
Sepulator Sep 21, 2025
8a39f40
fix: revert clearing response on initialize
Sepulator Sep 21, 2025
9e11a5d
Merge branch 'fix/clear-response-on-url' of github.com:Sepulator/rest…
Sepulator Sep 21, 2025
8b83d3d
fix: not reset response
Sepulator Sep 21, 2025
040bb49
Merge pull request #37 from Sepulator/fix/clear-response-on-url
Sepulator Sep 21, 2025
00f078a
fix: pull request review fixes
Sepulator Sep 23, 2025
aca9f17
fix: display values in code generator, clear response
Sepulator Sep 23, 2025
0b8e936
feat: not write variables in server
Sepulator Sep 23, 2025
5569b45
fix: replace vairables before json stringify
Sepulator Sep 25, 2025
2bfae4e
fix: correct calculation body size for code genrator
Sepulator Sep 25, 2025
d31c0f4
Merge pull request #39 from Sepulator/fix/collection-of-bugfix
Sepulator Sep 25, 2025
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
4 changes: 4 additions & 0 deletions .env.example
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@Sepulator @anastanei @SpaNb4 @IlinJoy
22 changes: 22 additions & 0 deletions .github/pull_request_template.md
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)
38 changes: 38 additions & 0 deletions .github/workflows/add-reviewers.yml
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);
}
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
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
42 changes: 42 additions & 0 deletions .gitignore
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
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit ${1}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run test && npm run lint && npm run type-check
9 changes: 9 additions & 0 deletions .prettierrc
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"]
}
2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
12 changes: 12 additions & 0 deletions .vscode/extensions.json
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"
]
}
22 changes: 22 additions & 0 deletions .vscode/settings.json
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"]
}
131 changes: 130 additions & 1 deletion README.md
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The script npm run format mentioned in the documentation does not exist in package.json. The available scripts for formatting are format:fix and format:check. Please update the README to reflect the correct script name to avoid confusion for developers setting up the project.

Suggested change
npm run format
npm run format:fix

```

---

#### Run husky to prepare git hooks

```bash copy
npm run prepare
```

---
Loading