Initial commit

This commit is contained in:
2024-10-03 17:14:32 +02:00
commit e6ec877864
50 changed files with 18515 additions and 0 deletions

0
scripts/.keep Normal file
View File

27
scripts/seed.ts Normal file
View File

@ -0,0 +1,27 @@
// import { db } from 'api/src/lib/db'
// Manually apply seeds via the `yarn rw prisma db seed` command.
//
// Seeds automatically run the first time you run the `yarn rw prisma migrate dev`
// command and every time you run the `yarn rw prisma migrate reset` command.
//
// See https://redwoodjs.com/docs/database-seeds for more info
export default async () => {
try {
// Create your database records here! For example, seed some users:
//
// const users = [
// { name: 'Alice', email: 'alice@redwoodjs.com },
// { name: 'Bob', email: 'bob@redwoodjs.com },
// ]
//
// await db.user.createMany({ data: users })
console.info(
'\n No seed data, skipping. See scripts/seed.ts to start seeding your database!\n'
)
} catch (error) {
console.error(error)
}
}

29
scripts/tsconfig.json Normal file
View File

@ -0,0 +1,29 @@
{
"compilerOptions": {
"noEmit": true,
"allowJs": true,
"esModuleInterop": true,
"target": "ES2023",
"module": "Node16",
"moduleResolution": "Node16",
"paths": {
"$api/*": ["../api/*"],
"api/*": ["../api/*"],
"$api/src/*": ["../api/src/*", "../.redwood/types/mirror/api/src/*"],
"api/src/*": ["../api/src/*", "../.redwood/types/mirror/api/src/*"],
"$web/*": ["../web/*"],
"web/*": ["../web/*"],
"$web/src/*": ["../web/src/*", "../.redwood/types/mirror/web/src/*"],
"web/src/*": ["../web/src/*", "../.redwood/types/mirror/web/src/*"],
"types/*": ["../types/*", "../web/types/*", "../api/types/*"]
},
"typeRoots": ["../node_modules/@types"],
"jsx": "preserve"
},
"include": [
".",
"../.redwood/types/includes/all-*",
"../.redwood/types/includes/web-*",
"../types"
]
}