Started from Next.js + EdgeDB + EdgeDB Auth template.
Project was started for EdgeDB hackathon. The video gives an overview of it.
Bun is used to run/install things.
bun i
Install EdgeDB using:
(or update to version in /edgedb.toml using edgedb cli upgrade
)
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh
Create new EdgeDB instance:
(if it asks you for version, accept main
)
edgedb project init
Name instance kuskus
. Apply migrations with:
edgedb migration apply
Setup auth with:
(app name: "kuskus", and accept everything else)
bun auth:setup
Generate EdgeDB-JS types with:
bun generate:all
Sets up seed folder for cli/seed.ts to work well.
bun setup
bun dev
Can then create account by pressing sign up
on top corner.
More info on development can be read in Next.js + EdgeDB + EdgeDB Auth template and EdgeDB docs.
Always open to useful ideas or fixes in form of issues or PRs.