Skip to content

Latest commit

 

History

History

browser-proxy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Browser Proxy

This app is a proxy that sits between the browser and a PostgreSQL client.

It is using a WebSocket server and a TCP server to make the communication between the PGlite instance in the browser and a standard PostgreSQL client possible.

Development

Copy the .env.example file to .env and set the correct environment variables.

Run the dev server from the monorepo root. See Development.

The browser proxy will be listening on ports 5432 (Postgres TCP) and 443 (Web Sockets).

Deployment

Create a new app on Fly.io, for example database-build-browser-proxy.

Fill the app's secrets with the correct environment variables based on the .env.example file.

Deploy the app:

fly deploy --app database-build-browser-proxy