Welcome to the Neon Postgres Database and Next.js Handbook. Follow these steps to get started:
This project is based on the following tutorial: Full Stack Development with Next.js, Clerk, and Neon Postgres
Neon is a serverless Postgres platform designed to help you build reliable and scalable applications faster. We separate compute and storage to offer modern developer features such as autoscaling, branching, point-in-time restore, and more. Get started today with our generous free tier.
- Clone the repository:
git clone https://github.com/tyaga001/serverless-postgres-nextjs-handbook.git
- Install the project dependencies.
npm install
- Create your .env.local file:
Create a .env.local file in the root directory of the project.
touch .env.local
- Set up Neon database:
Create a Neon project and copy your connection string into the .env.local
file.
NEON_DATABASE_URL=
- Set up Clerk application:
Create a Clerk application project and copy your credentials into the .env.local
file.
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
- Initialize the database:
Execute the command - npm run db-create
within your terminal.
- Start the Next.js development server:
npm run dev
- Open the application in your browser:
Navigate to http://localhost:3000 to view the app.
- Explore Neon's documentation for advanced features and API references.
- Learn more about Clerk for user authentication and management.
- Check out the Next.js documentation for optimizing your application performance.
-
Explore Neon Docs:
- Dive into Neon's documentation for comprehensive guides and API references.
-
Discover Best Practices:
- Learn best practices for optimizing db performance with Neon's guides.
-
Stay Updated:
- Read about the latest features and updates on the Neon blog.
-
See Case Studies:
- Explore how companies are using Neon in real-world scenarios on case studies page.
-
Enterprise Solutions:
- Learn how Neon can support enterprise needs on enterprise page.
-
Branching Strategies:
- Discover effective branching strategies with Neon on branching page.
-
Join the Neon Community:
- Engage with the Neon community on discord and stay updated with the latest developments.
Learn more about Neon's features at Neon.tech.