Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/evanshortiss/neon-serverless-docker-nodejs
- Owner: evanshortiss
- Created: 2024-03-19T16:19:48.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-19T16:24:23.000Z (8 months ago)
- Last Synced: 2024-04-09T13:09:28.682Z (7 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-dockerdocker 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'
}
```