Quickstart: Install and run the Next.js Billing App
mainFollow these steps to get the project running locally:
- Clone the repository and enter the directory.
- Install dependencies using pnpm:
pnpm install - Configure environment variables:
Copy the example file:
Fill in the required keys (see Environment Variables Reference).cp .env.example .env - Set up the database:
Push the schema to your Postgres instance:
pnpm db:push - Start the development server:
The app will be available atpnpm devhttp://localhost:3000.
pnpm install
cp .env.example .env
pnpm db:push
pnpm dev