Skip to content

Commit 2be8ac5

Browse files
author
Dedakup
committed
refactor: enhancing frontend with TypeScript, Redux, and custom hooks; improving asset management
- Refactoring the frontend by adding TypeScript for type safety and maintainability. - Integrating Redux for state management. - Documenting components for better clarity and collaboration. - Moving component logic into custom hooks to improve reusability and maintainability. - Transferring sound assets to Amazon S3 for efficient storage. - Creating API endpoints for sound assets and integrating them with the frontend.
1 parent 9eed76c commit 2be8ac5

File tree

166 files changed

+22665
-13055
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+22665
-13055
lines changed

.gitignore

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,50 @@
11
# Node.js
22
node_modules/
3+
4+
# Environment files
35
.env
6+
.env.local
7+
.env.*.local
8+
VITE_.env
49

510
# Logs
11+
logs/
12+
*.log
613
npm-debug.log*
714
yarn-debug.log*
815
yarn-error.log*
16+
pnpm-debug.log*
17+
lerna-debug.log*
918

10-
# Build
19+
# Build directories
1120
dist/
1221
build/
22+
.serverless/
1323

14-
# React
24+
# Frontend-specific
1525
.cache/
26+
.vite/
27+
coverage/
28+
29+
# Backend-specific
30+
src/**/*.d.ts # Ignore autogenerated TypeScript declarations
31+
*.db # Ignore local SQLite database files
32+
tmp/
33+
34+
# OS-specific
35+
.DS_Store
36+
Thumbs.db
37+
38+
# IDE-specific
39+
.idea/
40+
*.suo
41+
*.ntvs*
42+
*.njsproj
43+
*.sln
44+
*.sw?
45+
46+
# Compiled binary addons
47+
build/Release
48+
49+
# Optional npm cache directory
50+
.npm

.husky/_/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"
3+
4+
# Add the linting commands directly
5+
npm run lint --prefix frontend && npm run lint --prefix backend

.husky/_/pre-push

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"
3+
npm run test --prefix frontend && npm run test --prefix backend

.serverless/meta.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint", // ESLint for linting JavaScript/TypeScript
4+
"esbenp.prettier-vscode", // Prettier for code formatting
5+
"eamodio.gitlens", // GitLens for enhanced Git support
6+
"ms-vscode.vscode-typescript-next", // TypeScript support for newer features
7+
"streetsidesoftware.code-spell-checker", // Spell checker for typos
8+
"ms-playwright.playwright" // Playwright for E2E testing
9+
]
10+
}

.vscode/settings.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode", // Use Prettier as the default formatter
4+
"editor.tabSize": 2, // Enforce 2-space indentation
5+
"files.exclude": {
6+
"dist/": true,
7+
"node_modules/": true,
8+
".serverless/": true
9+
},
10+
"eslint.alwaysShowStatus": true, // Show ESLint status in the bottom bar
11+
"typescript.tsserver.log": "verbose", // Useful for debugging TypeScript issues
12+
"gitlens.hovers.enabled": true, // Enable GitLens hover features
13+
"extensions.required": [
14+
"dbaeumer.vscode-eslint",
15+
"esbenp.prettier-vscode"
16+
]
17+
}

backend/.eslintignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Ignore node modules
2+
node_modules/
3+
4+
# Ignore build artifacts
5+
dist/
6+
.serverless/
7+
8+
# Ignore environment files
9+
.env
10+
.env.example
11+
12+
# Ignore config files
13+
jest.config.js
14+
tsconfig.json
15+
.eslintrc.js
16+
17+
# Ignore specific folders
18+
coverage/ # If using Jest for coverage reports
19+
logs/

backend/.eslintrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"es2021": true
5+
},
6+
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
7+
"parser": "@typescript-eslint/parser",
8+
"plugins": ["@typescript-eslint"],
9+
"rules": {
10+
"prettier/prettier": "error"
11+
}
12+
}

backend/.gitignore

Lines changed: 20 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,32 @@
11
# Logs
2-
logs
2+
logs/
33
*.log
4-
npm-debug.log*
54

6-
# Visual Studio Code
7-
.vscode
5+
# Node.js
6+
node_modules/
87

9-
tmp
10-
11-
# Runtime data
12-
pids
8+
# Temporary files
9+
tmp/
10+
pids/
1311
*.pid
1412
*.seed
1513

16-
# Directory for instrumented libs generated by jscoverage/JSCover
17-
lib-cov
18-
19-
# Coverage directory used by tools like istanbul
20-
coverage
21-
22-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
23-
.grunt
24-
25-
# node-waf configuration
26-
.lock-wscript
27-
28-
# Compiled binary addons (http://nodejs.org/api/addons.html)
29-
build/Release
14+
# Build
15+
dist/
16+
build/
17+
.serverless/
3018

31-
# Dependency directory
32-
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
33-
node_modules
19+
# Coverage
20+
coverage/
21+
lib-cov/
3422

35-
# Optional npm cache directory
36-
.npm
37-
38-
# Optional REPL history
39-
.node_repl_history
40-
41-
# project files that contain sensitive data
23+
# Sensitive files
4224
.env
4325
event.json
4426
policyDocument.json
45-
*.zip
27+
28+
# Compiled binary addons
29+
build/Release
30+
31+
# IDE-specific
32+
.vscode/

backend/.prettierignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Ignore node modules
2+
node_modules/
3+
4+
# Ignore build artifacts
5+
dist/
6+
.serverless/
7+
8+
# Ignore environment files
9+
.env
10+
.env.example
11+
12+
# Ignore package lock and yarn lock files
13+
package-lock.json
14+
yarn.lock
15+
16+
# Ignore other specific files or folders
17+
coverage/ # If using Jest for coverage reports
18+
logs/

0 commit comments

Comments
 (0)