feat: fileService.ts

This commit is contained in:
Lucàs
2024-09-20 22:08:00 +02:00
parent b8d5751374
commit 0382499c0d
15 changed files with 1415 additions and 16 deletions
+17 -1
View File
@@ -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}`
);
});