Spaces:
Sleeping
Sleeping
Download server.js from shard-c6/green-guard-api: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/spaces/shard-c6/green-guard-api/resolve/main/server.js
- Command line
-
hf download hf://spaces/shard-c6/green-guard-api/server.js
-
curl -L -o server.js https://huggingface.co/spaces/shard-c6/green-guard-api/resolve/main/server.js
1.21 kB
| const app = require('./app'); | |
| const env = require('./src/config/env'); | |
| const PORT = env.port; | |
| app.listen(PORT, () => { | |
| console.log(` | |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| β β | |
| β π± Green Guard v2 API Server β | |
| β β | |
| β Environment : ${env.nodeEnv.padEnd(20)} β | |
| β Port : ${String(PORT).padEnd(20)} β | |
| β Supabase : ${env.supabaseUrl ? 'β Connected' : 'β Not configured'} β | |
| β n8n Webhook : ${env.n8nWebhookUrl ? 'β Set' : 'β³ Not set'} β | |
| β β | |
| β API Base : http://localhost:${PORT}/api β | |
| β Health : http://localhost:${PORT}/api/health β | |
| β β | |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| `); | |
| }); | |