Skip to content

tyaga001/serverless-postgres-nextjs-handbook

Repository files navigation

Neon Postgres Database and Next.js Handbook

App Screenshot

Welcome to the Neon Postgres Database and Next.js Handbook. Follow these steps to get started:

Table of Contents

Tutorial

This project is based on the following tutorial: Full Stack Development with Next.js, Clerk, and Neon Postgres

Introduction

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.

Getting Started

  1. Clone the repository:
    git clone https://github.com/tyaga001/serverless-postgres-nextjs-handbook.git
    
  2. Install the project dependencies.
npm install
  1. Create your .env.local file:

Create a .env.local file in the root directory of the project.

 touch .env.local
  1. Set up Neon database:

Create a Neon project and copy your connection string into the .env.local file.

NEON_DATABASE_URL=
  1. 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=
  1. Initialize the database:

Execute the command - npm run db-create within your terminal.

  1. Start the Next.js development server:
npm run dev
  1. Open the application in your browser:

Navigate to http://localhost:3000 to view the app.

Next Steps

Next Steps with Neon

  1. Explore Neon Docs:

  2. Discover Best Practices:

    • Learn best practices for optimizing db performance with Neon's guides.
  3. Stay Updated:

    • Read about the latest features and updates on the Neon blog.
  4. See Case Studies:

    • Explore how companies are using Neon in real-world scenarios on case studies page.
  5. Enterprise Solutions:

    • Learn how Neon can support enterprise needs on enterprise page.
  6. Branching Strategies:

    • Discover effective branching strategies with Neon on branching page.
  7. Join the Neon Community:

    • Engage with the Neon community on discord and stay updated with the latest developments.

Get Started with Neon Today

Learn more about Neon's features at Neon.tech.


Releases

No releases published

Packages

No packages published