Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evanshortiss/neon-docker-wss-proxy-local
https://github.com/evanshortiss/neon-docker-wss-proxy-local
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/evanshortiss/neon-docker-wss-proxy-local
- Owner: evanshortiss
- Created: 2024-03-27T01:11:10.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-27T04:50:04.000Z (8 months ago)
- Last Synced: 2024-04-09T13:09:30.496Z (7 months ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Neon Local Development (using WebSockets)
This repository demonstrates how to use the Neon Serverless Driver during local
development. Specifically it shows how to use the `Client` and `Pool` instances
that work over WebSockets.Tested with:
* Docker Desktop 4.27
* Node.js 18## Usage
Start a Postgres instance and WebSocket Proxy using Docker Compose:
```bash
docker-compose up
```Next, run the Node.js application in another terminal:
```bash
npm install
npm start
```It should print something similar to:
```js
[
{
version: 'PostgreSQL 16.1 (Debian 16.1-1.pgdg120+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit'
}
]
```