Skip to content

neondatabase-labs/neon-auth-ts-template

Repository files navigation

Neon Auth - Vanilla TS Template App

This is a Vite + Vanilla TS project that serves as template for the Neon Auth integration

Features

  • Vanilla TS app with Vite, TypeScript and Tailwind CSS
  • User authentication powered by Stack Auth
  • Ready-to-deploy configuration for Vercel, Netlify, and Render

Prerequisites

  • Neon account
  • Node.js 18+ installed locally

Local Development Setup

1. Set up Neon Auth

  1. Create a new Neon project or use an existing one
  2. Navigate into Neon Auth
  3. Click "Connect" and go through the OAuth flow until your Neon Auth integration is set

2. Run the development server

  1. Install dependencies:

    npm install
  2. Create .env.local file and copy the variables from the Neon Auth dashboard:

    # Stack Auth
    VITE_STACK_PROJECT_ID=
    VITE_STACK_PUBLISHABLE_CLIENT_KEY=
    
  3. Run the development server:

    npm run dev

Open http://localhost:5173 with your browser to see the result.

Learn More

Authors

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A template to get started with Neon Auth in Vanilla TS application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published