Austin Airbnb Analytics with NextJS / tanstack / tRPC / shadCN/ui
This project uses PostgreSQL with Drizzle ORM. Environment-based configuration is supported for local development and production (Supabase).
- Ensure PostgreSQL is running locally on port 5432 with a database named
rental_insight. - The
.env.localfile is configured with the local database URL.
- Create a Supabase project at supabase.com.
- Go to Project Settings > Database and copy the PostgreSQL connection string.
- Update
.env.productionwith your Supabase connection string:DATABASE_URL=postgresql://postgres:[YOUR_PASSWORD]@[YOUR_HOST]:5432/postgres - For deployment, set the
DATABASE_URLenvironment variable in your hosting platform.
Run migrations using Drizzle:
npx drizzle-kit generate
npx drizzle-kit migrateFirst, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
