An application for teams to track their mood and well-being.
- PostgreSQL installed and running
- Node.js 22 and pnpm
- Clone the repository and install dependencies:
git clone git@github.com:patio-team/patio-next.git
cd patio
pnpm install- Set up environment variables:
cp .env.example .envEdit .env with your real values:
DATABASE_URL: Your PostgreSQL connection stringSMTP_*: Your email server configurationBETTER_AUTH_*: Authentication configurationNEXT_PUBLIC_APP_URL: Your app's URL
- Set up the database:
# Generate migrations
pnpm db:generate
# Apply migrations
pnpm db:migrate
# Or use push for development (syncs the schema directly)
pnpm db:push- Start the application:
pnpm devPatio includes an email system for team invitations and daily mood tracking reminders.
Email templates are built using MJML and compiled to HTML:
emails/invitation.mjml- Team invitation email templateemails/reminder.mjml- Daily mood tracking reminder email template
pnpm compile:emails- Compiles MJML email templates to HTMLpnpm send-reminders- Sends daily mood tracking reminders to team members
Manual execution:
# Send reminders manually
pnpm send-reminders