mirror of
https://github.com/kmitresse/Compo-Service-Log-Project.git
synced 2026-07-09 12:07:45 +00:00
feat: fileService.ts
This commit is contained in:
+17
-1
@@ -1 +1,17 @@
|
||||
console.log('Hello world!')
|
||||
import express from "express";
|
||||
import dotenv from "dotenv";
|
||||
import { createServer } from "node:http";
|
||||
import { logger } from "./middlewares";
|
||||
import routes from "./routes";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const app = express();
|
||||
app.use(logger, routes);
|
||||
const server = createServer(app);
|
||||
|
||||
server.listen(process.env.PORT || 8080, () => {
|
||||
console.info(
|
||||
`Server is running on http://localhost:${process.env.PORT || 8080}`
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user