Hydrapp includes email/password authentication with:
- Sign-up with email, password, and password confirmation
- Sign-in with JWT stored in an HTTP-only cookie
- Authentication handled with Next.js server actions
- Backend validation with zod
- Frontend forms built with react-hook-form + zod resolver
- Copy env variables:
cp .env.example .env- Start Postgres:
npm run db:up- Run DB migration (creates the
userstable):
npm run db:migrate- Start the app:
npm run dev## we are mapping the port 5432 to 5433 to avoid conflicts with the default port 5432
docker run --name hydrapp_db -p 5433:5432 -e POSTGRES_USER=jakub -e POSTGRES_PASSWORD=password -e POSTGRES_DB=hydrapp -d postgres
docker start hydrapp_db