Repository navigation
Configuration
Ju Lin edited this page Mar 9, 2025
·
2 revisions
The system requires the following environment variables:
# Server configuration
PORT=8001
NODE_ENV=development|production
# Azure Storage
AZURE_STORAGE_CONNECTION_STRING="DefaultEndpointsProtocol=https;AccountName=fusionfly;AccountKey=xxxxx;EndpointSuffix=core.windows.net"
AZURE_STORAGE_CONTAINER_UPLOADS="uploads"
AZURE_STORAGE_CONTAINER_PROCESSED="processed"
AZURE_STORAGE_CONTAINER_RESULTS="results"
# Azure CosmosDB
COSMOS_ENDPOINT="https://fusionfly.documents.azure.com:443/"
COSMOS_KEY="xxxxx"
COSMOS_DATABASE="fusionfly-db"
USE_LOCAL_DB_FALLBACK=false
# Azure OpenAI
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENGINE=
AZURE_OPENAI_API_VERSION=
AI_ENABLED=true
# Authentication
JWT_SECRET=
JWT_EXPIRES_IN=
# Redis Queue
REDIS_HOST=
REDIS_PORT=
The React frontend requires proxy configuration in package.json matching the backend port:
{
"name": "gnss-converter-frontend",
"version": "0.1.0",
"private": true,
// ... other properties ...
"proxy": "http://localhost:8001"
}ss definitions
npm install --save-dev @types/express @types/multer @types/jsonbcrypt# Core dependencies
npm install react react-dom react-router-dom axios
# UI components
npm install @heroicons/react
# Development dependencies
npm install --save-dev tailwindcss postcss autoprefixer- Create a storage account in Azure Portal
- Create three containers:
- uploads
- processed
- results
- Get connection string from Access Keys section
- Create a CosmosDB account
- Create database "fusionfly-db"
- Create container "users" with partition key "/email"
- Get endpoint and key from Keys section
- Create Azure OpenAI resource
- Deploy model
- Get endpoint, API key, model deployment name