diff --git a/Makefile b/Makefile index e328855..72d662c 100644 --- a/Makefile +++ b/Makefile @@ -96,15 +96,6 @@ dev-down: ## Stop the dev stack test-backend: ## Run backend tests $(COMPOSE) $(COMPOSE_DEV) exec backend npm test -test-frontend: ## Run frontend tests - $(COMPOSE) $(COMPOSE_DEV) exec frontend npm test - -lint-backend: ## Lint backend - $(COMPOSE) $(COMPOSE_DEV) exec backend npm run lint - -lint-frontend: ## Lint frontend - $(COMPOSE) $(COMPOSE_DEV) exec frontend npm run lint - sh-backend: ## Open a shell inside the backend container $(COMPOSE) $(COMPOSE_DEV) exec backend sh @@ -160,5 +151,4 @@ fclean: clean ## Full clean: also remove certs and prune Docker images docker system prune -af .PHONY: help env certs up down re dev dev-down migrate migrate-dev studio logs \ - ps clean fclean test-backend test-frontend lint-backend lint-frontend \ - sh-backend sh-frontend sh-db + ps clean fclean test-backend sh-backend sh-frontend sh-db diff --git a/README.md b/README.md index a7ef853..2e6f809 100644 --- a/README.md +++ b/README.md @@ -331,7 +331,7 @@ Our team has implemented the following modules. The subject requires a minimum o * Fixed core frontend routing, session persistence (logout clearing), and state synchronization (username updates). * Resolved infrastructure bugs, including Docker certificate read rights and profile data persistence after database wipeouts. * Docker Compose dev-override setup enabling hot reload through the proxy -* **Challenges:** Ensuring secure JWT session handling alongside TOTP 2FA, and maintaining stable CI/CD pipelines across differing Node versions and Docker environments. +* **Challenges:** Ensuring secure JWT session handling alongside TOTP 2FA. * **Overcome:** Successfully integrated `otplib` for strict 2FA validation and structured the GitHub workflows and Docker permissions to guarantee secure, reliable deployments. ### elsikira @@ -403,6 +403,11 @@ Our team has implemented the following modules. The subject requires a minimum o * Added robust disconnect and recovery handling to prevent deadlocks and inconsistent game states. * Refactored the game architecture to improve modularity, maintainability and scalability. +## Music credits +“Forest River Spirits” by Tausdei (Evgeny), from OpenGameArt.org. +Used in this project with attribution to the original creator. +Source: OpenGameArt.org — Forest River Spirits + --- ## Legal & Compliance diff --git a/frontend/README.md b/frontend/README.md deleted file mode 100644 index 7dbf7eb..0000000 --- a/frontend/README.md +++ /dev/null @@ -1,73 +0,0 @@ -# React + TypeScript + Vite - -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. - -Currently, two official plugins are available: - -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs) -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) - -## React Compiler - -The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). - -## Expanding the ESLint configuration - -If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: - -```js -export default defineConfig([ - globalIgnores(['dist']), - { - files: ['**/*.{ts,tsx}'], - extends: [ - // Other configs... - - // Remove tseslint.configs.recommended and replace with this - tseslint.configs.recommendedTypeChecked, - // Alternatively, use this for stricter rules - tseslint.configs.strictTypeChecked, - // Optionally, add this for stylistic rules - tseslint.configs.stylisticTypeChecked, - - // Other configs... - ], - languageOptions: { - parserOptions: { - project: ['./tsconfig.node.json', './tsconfig.app.json'], - tsconfigRootDir: import.meta.dirname, - }, - // other options... - }, - }, -]) -``` - -You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: - -```js -// eslint.config.js -import reactX from 'eslint-plugin-react-x' -import reactDom from 'eslint-plugin-react-dom' - -export default defineConfig([ - globalIgnores(['dist']), - { - files: ['**/*.{ts,tsx}'], - extends: [ - // Other configs... - // Enable lint rules for React - reactX.configs['recommended-typescript'], - // Enable lint rules for React DOM - reactDom.configs.recommended, - ], - languageOptions: { - parserOptions: { - project: ['./tsconfig.node.json', './tsconfig.app.json'], - tsconfigRootDir: import.meta.dirname, - }, - // other options... - }, - }, -]) -``` diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js deleted file mode 100644 index ef614d2..0000000 --- a/frontend/eslint.config.js +++ /dev/null @@ -1,22 +0,0 @@ -import js from '@eslint/js' -import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' -import tseslint from 'typescript-eslint' -import { defineConfig, globalIgnores } from 'eslint/config' - -export default defineConfig([ - globalIgnores(['dist']), - { - files: ['**/*.{ts,tsx}'], - extends: [ - js.configs.recommended, - tseslint.configs.recommended, - reactHooks.configs.flat.recommended, - reactRefresh.configs.vite, - ], - languageOptions: { - globals: globals.browser, - }, - }, -])