Skip to content

AlbertjanPieffers/macon-office-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MACON Office API

Node/Express TypeScript API for the MACON Office Interface.

  • Verifies Supabase JWT (role: office)
  • Connects to MongoDB
  • Proxies read-only machine status/events to PLC-bridge
  • Proxies read-only file listing/download to File-Bridge

Quick Start

pnpm i
cp .env.example .env
pnpm dev

Environment

PORT=8080
MONGO_URI=mongodb://mongo-host:27017
MONGO_DB=MACON_Production
PLC_BRIDGE_BASE=http://10.10.10.5:5001
FILE_BRIDGE_BASE=http://10.10.10.5:5100
ALLOWED_ORIGIN=https://your-frontend.example.com
SUPABASE_JWKS=https://xyzcompany.supabase.co/auth/v1/keys
REQUIRED_ROLE=office

Scripts

  • pnpm dev – Dev mode with tsx
  • pnpm build – tsc build
  • pnpm start – run built app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors