.vscode | ||
app | ||
auth | ||
components | ||
lib | ||
prisma/schemas | ||
public | ||
.eslintrc.json | ||
.example.env | ||
.gitignore | ||
.prettierrc.json | ||
bun.lockb | ||
components.json | ||
global.d.ts | ||
next-env.d.ts | ||
next.config.mjs | ||
package.json | ||
postcss.config.mjs | ||
README.md | ||
tailwind.config.ts | ||
tsconfig.json |
Needs BunJS and a Mysql DB
1 - create a mysql database called daphnis
2a - create .env file from the example.env
2 - delete the migrations and generated folder(s) inside schemas/artemis and schemas/daphnis
3 - run the below
$ bun db:init
What it does:
It will create a empty data base for daphnis and pull your existing artemis one into its own schema via introspection.
"db:init": "npx prisma migrate dev --name init --schema prisma/schemas daphnis/schema.prisma; npx prisma db pull --schema prisma/schemas/artemis/schema.prisma"
4 - run the below
$ bun daphnis:generate
What it does:
generates the schema output
"daphnis:generate": "prisma generate --schema=./prisma/schemas/daphnis/schema.prisma"
5 - run the below
generates the schema output
$ bun aretmis:generate
What it does:
"artemis:generate": "prisma generate --schema=./prisma/schemas/artemis/schema.prisma"
6 - start daphnis
$ bun run dev
What it does:
"dev": "next dev",