mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-25 11:51:07 +00:00
local-proxy
Lightweight host for Cosmos Explorer
Quickstart
- Pre-req - install packages for root project (
cd ../.. && npm ci && cd utils/local-proxy) - Install - install packages for local-proxy (
npm ci) - Pack -
npm run pack- builds and packs Cosmos Explorer and copies files into project - Start -
npm start- starts the proxy
cd ../..
npm ci
cd utils/local-proxy
npm ci
npm run pack
npm start
Config
All config is current set via environment variables
| Name | Options (Default) | Description |
|---|---|---|
PORT |
number (1234) |
The port on which the proxy runs. |
LOG_LEVEL |
debug, info, warn, error (info) |
The logging level for the proxy. |
EMULATOR_ENDPOINT |
string (http://localhost:8081) |
The endpoint for the emulator which will be proxied. |
ENDPOINT_DISCOVERY_ENABLED |
boolean (false) |
Determine whether the proxy will rewrite the endpoint or not |
Dependenies
Node.js v20+ npm (optional)
Deployment
Copy the entire local-proxy directory to wherever you'd like. If you have npm, you can use npm start, else node main.js