[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/shipengineer/JavaScript/main/tutorials/lab6/example/index.js [Back]  [Original]

const express = require('express');

const stocks = require('./internal/stocks');

const app = express();

const host = 'localhost';
const port = 8000;

app.use(express.json());

app.use('/stocks', stocks);

app.listen(port, host, () => {
    console.log(`    http://${host}:${port}`);
});

Web Proxy Viewer  |  New URL  |  Original Page