Database Setup Required

Your ClassChat application needs to be connected to a database to function properly.

Neon Database Setup
ClassChat uses Neon as its PostgreSQL database. Follow these steps to get started.
1

Create a Neon Account

Sign up for a free Neon account if you don't have one already.

Visit Neon.tech
2

Create a New Database

Create a new PostgreSQL database in your Neon dashboard.

3

Get Connection String

Copy the connection string from your Neon dashboard. It should look like:

postgresql://username:password@host/database?sslmode=require
4

Set Environment Variable

Add the connection string as DATABASE_URL in your environment variables:

DATABASE_URL=your_connection_string_here
5

Run Database Schema

Execute the SQL files in the lib/ directory to set up your database tables.

6

Restart Application

Restart your application to apply the new environment variable.