Skip to content

Secure your backend APIs with Auth0 and Node.js using the NeonDB as an example

Notifications You must be signed in to change notification settings

Terieyenike/neondb-with-auth0

Repository files navigation

Setup Auth0 and Postgres using Neon

Neon is a cloud-native serverless Postgres database which enables you spin up a database instance quickly and connect with it has features like autoscaling, branching, and bottomless storage with its architecture that support separate compute and storage.

Get started with Neon and Auth0.

This app is a Node.js backend API where node-postgres is used to query the database in Neon and returning the data as JSON.

Demo

neon app with auth0

student info from neon db

Deployed app

Test this web app: https://neondb.onrender.com/

Setup

Clone the repo and install dependencies

$ git clone https://github.com/Terieyenike/neondb-with-auth0.git
$ cd neondb-with-auth0
$ npm install

Environment variables

Head over to your dashboard in Neon and copy-paste the connection string and replace the dummy data with yours in .env.local

Start the server

$ npm run dev

Tech stack

  • Express
  • node-postgres
  • Embedded JavaScript (EJS)
  • Neon
  • Auth0

Author

About

Secure your backend APIs with Auth0 and Node.js using the NeonDB as an example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published