File size: 675 Bytes
af1bee9
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
'use strict';
// Entry point of the MOCK Oracle Fusion-style app (NOT Oracle software). Shared shell + pluggable module packs
// (mock-app/modules/<id>/). Synthetic data only; "Sign in" just picks a persona cookie; no credentials.
const { buildApp } = require('./core/shell');
const app = buildApp();
const PORT = Number(process.env.PORT || 3100);
// Loopback only unless MOCK_HOST says otherwise (a standalone practice pod that people open in a browser).
const HOST = process.env.MOCK_HOST || '127.0.0.1';
if (require.main === module) app.listen(PORT, HOST, () => console.log(`Mock Fusion (NOT Oracle) listening on http://${HOST}:${PORT}`));
module.exports = app;