Free and Open-source video streaming suite. https://miracle-tv.live
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
425 B

import Express from 'express';
import apiRouter from 'server/routes/api';
import db from 'server/db';
import { pathOr } from 'ramda';
import config from 'server/config';
const app = Express();
export const appDB = db;
app.use('/api', apiRouter);
export default app;
const port = pathOr(8080, ['server', 'port'], config);
if (require.main === module) {
app.listen(port, () => console.info(`Listening on ${port}!`));
}