This is a Next.js project bootstrapped with create-next-app.
It uses Postgres-compatible database, Better-auth for authentication, Drizzle ORM for querying the db, tailwindcss & shadcn for ui. .husky is used for git hooks on commit to format the code.
Ready examples how to use the tech stack are in /src/app/contacts-crud & contact-form.
- Copy
.env.example->.env.development+.env.production.Insert env variables.- Used to push migrations to both dev & prod db
npm inpm run db:syncto push db migrtions to both prod & dev.npm run devNow if we have done everything correct we can visit it on localhost:3000
We preffer server actions instead of API routes. Full Typescript without any or type-castings as much as possible.
lib- code for external libraries. Mostly boilerplate and configs.models- everything for the Databaseutils- utility functions to be re-usedcomponents- ui components