12 lines
342 B
JavaScript
12 lines
342 B
JavaScript
const express = require("express");
|
|
const _ = require("lodash");
|
|
const { formatDate } = require("@demo/utils");
|
|
|
|
const app = express();
|
|
|
|
app.get("/", (_req, res) => {
|
|
res.json({ message: _.upperFirst("hello from the monorepo"), now: formatDate(new Date()) });
|
|
});
|
|
|
|
app.listen(8080, () => console.log("listening on http://localhost:8080"));
|