First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Set your database url in your .env
file like this
DATABASE_URL="your-postgres-db-url-goes-here"
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.