This is a Next.js project bootstrapped with create-next-app
.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to opensource@chanzuckerberg.com.
If you believe you have found a security issue, please responsibly disclose by contacting us at security@chanzuckerberg.com.
-
Set up Environment Variables: Create a
.env
file in the project root and add the following variables:AUTH_SECRET="generate with npx auth" DATABASE_URL="postgresql://user:password@localhost:5432/dev_db" # to use dev docker db
-
Start the Database: Ensure you have Docker installed and running. Then, start the PostgreSQL container:
docker-compose up -d
-
Apply Database Schema: Install dependencies if you haven't already (
yarn
). Then, apply the latest database schema changes defined indb/schema.ts
:npx drizzle-kit push
-
Run the Development Server: Start the application's development server (Next.js):
yarn dev
The application should now be running locally at
http://localhost:3000
, connected to the Dockerized PostgreSQL database.