Skip to content

jchojna/hydrApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

508 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hydrapp

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

Local Setup

  1. Copy env variables:
cp .env.example .env
  1. Start Postgres:
npm run db:up
  1. Run DB migration (creates the users table):
npm run db:migrate
  1. Start the app:
npm run dev
How to run postgres locally
## 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

About

Simple app for tracking the amount of glasses of water consumed per day

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors