Go to file
2024-08-20 16:49:01 -04:00
.vscode shares now open in a new tab 2024-06-29 15:25:43 -04:00
app added chunithm version selector in admin settings 2024-08-20 16:49:01 -04:00
auth added chunithm version selector in admin settings 2024-08-20 16:49:01 -04:00
components added chunithm version selector in admin settings 2024-08-20 16:49:01 -04:00
lib added chunithm version selector in admin settings 2024-08-20 16:49:01 -04:00
prisma/schemas added chunithm version selector in admin settings 2024-08-20 16:49:01 -04:00
public change speak to speak-as 2024-08-17 16:25:54 -04:00
.eslintrc.json cleanup 2024-06-29 02:25:52 -04:00
.example.env added update functions 2024-08-01 21:42:14 -04:00
.gitignore added patcher and redirect to homepage if user is logged in 2024-08-17 16:25:04 -04:00
.prettierrc.json styled userbox page and removed sticky nav 2024-07-28 01:10:53 -04:00
bun.lockb added chunithm version selector in admin settings 2024-08-20 16:49:01 -04:00
components.json first commit 2024-06-29 01:22:22 -04:00
global.d.ts added chunithm version selector in admin settings 2024-08-20 16:49:01 -04:00
next-env.d.ts first commit 2024-06-29 01:22:22 -04:00
next.config.mjs fixed hydration error when changing theme and added dynamic default avatar 2024-07-24 23:25:01 -04:00
package.json added chunithm version selector in admin settings 2024-08-20 16:49:01 -04:00
postcss.config.mjs first commit 2024-06-29 01:22:22 -04:00
README.md updated readme 2024-08-17 16:41:38 -04:00
tailwind.config.ts first commit 2024-06-29 01:22:22 -04:00
tsconfig.json Changed leftovers to daphnis 2024-06-29 01:46:07 -04:00

Needs BunJS and a Mysql DB

1 - create a mysql database called daphnis

make a .env in the root directory containing the following (be sure to use your own data)

DATABASE_URL="mysql://root:password@localhost:3306/daphnis" DATABASE_AIME_URL = "mysql://root:password@localhost:3306/aime"


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",

You can look at the package.json to figure out how to migrate daphnis if you have the desire to make changes.

If you download the files as is you should just need to update the env and do a migrate to your db for daphnis, check your database after to make sure all the schemas are there.

"daphnis:migrate": "prisma migrate dev --schema=./prisma/schemas/daphnis/schema.prisma",