feat: initialize project with Next.js, Prisma, and Tailwind CSS

- Add package.json with dependencies and scripts for Next.js and Prisma
- Implement API routes for session management, user authentication, and company configuration
- Create database schema for Company, User, and Session models in Prisma
- Set up authentication with NextAuth and JWT
- Add password reset functionality and user registration endpoint
- Configure Tailwind CSS and PostCSS for styling
- Implement metrics and dashboard settings API endpoints
This commit is contained in:
2025-05-21 20:44:56 +02:00
commit cdaa3ea19d
36 changed files with 7662 additions and 0 deletions

44
package.json Normal file
View File

@ -0,0 +1,44 @@
{
"name": "livedash-node",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --write .",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev"
},
"dependencies": {
"@prisma/client": "^6.8.2",
"@types/node-fetch": "^3.0.2",
"bcryptjs": "^3.0.2",
"chart.js": "^4.0.0",
"csv-parse": "^5.5.0",
"next": "^15.3.2",
"next-auth": "^4.24.11",
"node-cron": "^4.0.6",
"node-fetch": "^3.3.2",
"react": "^19.1.0",
"react-chartjs-2": "^5.0.0",
"react-dom": "^19.1.0",
"tailwindcss": "^4.1.7"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.2",
"@types/node": "^22.15.21",
"@types/node-cron": "^3.0.8",
"@types/react": "^19.1.5",
"@types/react-dom": "^19.1.5",
"autoprefixer": "^10.4.0",
"eslint": "^9.27.0",
"eslint-config-next": "^15.3.2",
"postcss": "^8.4.0",
"prettier": "^3.5.3",
"prisma": "^6.8.2",
"typescript": "^5.0.0"
}
}