Skip to content

Formsdk/nextjs-contact-starter

Repository files navigation

Next.js x FormsDK Starter

A minimal contact form starter using Next.js and FormsDK with PostgreSQL.

Supported Providers

FormsDK works with any PostgreSQL database. Tested providers:

Setup

1. Create a database

Sign up at any of the providers above and create a PostgreSQL database.

2. Get your database URL

Copy the connection string from your provider's dashboard.

3. Configure environment variables

Create a .env file in the root of the project:

DATABASE_URL=postgres://user:password@host/database?sslmode=require

4. Push the schema

bun db:push

5. Run the dev server

bun i
bun dev

Open http://localhost:3000.

Features

  • Contact form with name, email, and message fields
  • Form validation via @formsdk/sdk
  • PostgreSQL integration for data persistence
  • Works with any PostgreSQL provider

About

Basic FormsDK Next.js Starter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors