feat: initialize frontend with Vite and PWA support

- Add index.html as the main entry point for the application.
- Create package.json to manage dependencies and scripts for development.
- Include favicon.svg for the application icon.
- Configure PWA assets generation with pwa-assets.config.js.
- Implement counter functionality in counter.js with notification on reaching 5.
- Add JavaScript logo SVG for branding.
- Set up main.js to render the application and handle user interactions.
- Create notification.js to manage browser notifications.
- Implement PWA registration and update handling in pwa.js.
- Style the application with a new style.css file.
- Configure Vite with PWA plugin in vite.config.js for service worker and manifest settings.
This commit is contained in:
2025-05-23 16:18:52 +02:00
commit 0394a7aceb
32 changed files with 2615 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
{
"name": "backend",
"module": "index.ts",
"type": "module",
"private": true,
"devDependencies": {
"@types/bcrypt": "^5.0.2",
"@types/bun": "latest",
"@types/jsonwebtoken": "^9.0.9",
"@types/koa": "^2.15.0",
"@types/koa-bodyparser": "^4.3.12",
"@types/koa-router": "^7.4.8"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"bcrypt": "^6.0.0",
"jsonwebtoken": "^9.0.2",
"koa": "^3.0.0",
"koa-bodyparser": "^4.4.1",
"koa-jwt": "^4.0.4",
"koa-router": "^13.0.1",
"mongodb": "^6.16.0"
}
}