This PR mainly refactors the code by extracting a "core" package which is then used by the "backend" and "frontend" apps. Apart from this the PR also contains several smaller changes like fixing dependabot, upgrading dependencies, aligned "package.json" files, added tests, ... addresses step 1 of #32 closes #136 --------- Co-authored-by: Marco Pasqualetti <marco.pasqualetti@live.com>
13 lines
257 B
JavaScript
13 lines
257 B
JavaScript
import express from "express";
|
|
|
|
import router from "./router.js";
|
|
|
|
const app = express();
|
|
|
|
app.use(router);
|
|
|
|
const port = process.env.PORT || process.env.port || 9000;
|
|
app.listen(port, "0.0.0.0", () => {
|
|
console.log(`Server running on port ${port}`);
|
|
});
|