This is a Next.js and ElysiaJS project.
- Next.js - React Framework.
- ElysiaJS - API Framework.
- Lucia - Authentication library.
- Prisma - Database ORM.
- Tailwind CSS - A utility-first CSS framework.
First, add the following to your .env
file:
# .env.local
DATABASE_URL=""
Then, run the following commands to create the database and run the migrations:
# Elysia only runs on Bun
bun db:push
bun dev
Open http://localhost:3000 with your browser to see the result.
If you want to add more environment variables, you can add them to the .env.local
file and remember to add it in env.mjs
.
To learn more about Next.js, take a look at the following resources:
- Documentation - my blog post about this project.
- Next.js Documentation - learn about Next.js features and API.
- Elysia Documentation - learn about Elysia features and API.