Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evanshortiss/neon-serverless-docker-nodejs

A minimal demonstration for using Neon's Serverless driver from a container
https://github.com/evanshortiss/neon-serverless-docker-nodejs

Last synced: 21 days ago
JSON representation

A minimal demonstration for using Neon's Serverless driver from a container

Awesome Lists containing this project

README

        

# Neon Serverless Driver with Docker

_NOTE: This requires Docker or Podman to be installed on your machine._

Create a file named _.env_ and add your Neon connection string to it. For example:

```bash
DATABASE_URL=postgresql://neondb_owner:[email protected]/neondb?sslmode=require
```

Next, build a container image and run a container:

```bash
docker build . -t neon-docker

docker run --rm --env-file .env neon-docker
```

The `docker run` command should print:

```js
{
version: 'PostgreSQL 16.2 on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit'
}
```