This project is a Next.js application configured to use Docker for both the app and a PostgreSQL database, optimized for development with hot reloading.
- Next.js for the frontend
- Docker setup for easy deployment and consistent development environments
- PostgreSQL as the database
- Prisma as the ORM
- Hot Reloading for development
Ensure you have the following installed on your machine:
git clone <your-repo-url>
cd <your-repo-name>
Create a .env
file in the root directory and add the following variables:
DATABASE_URL="postgresql://postgres:postgres@postgres:5432/mydb?schema=public"
AUTH_SECRET="<your_auth_secret>"
AUTH_TRUST_HOST=true
RESEND_API_KEY="<your_resend_api_key>"
DEPLOY_HOOK="<your_deploy_hook_url>"
npm install
npx prisma generate
docker-compose up -d
Open your browser and navigate to http://localhost:3000
to see the application running.