25 lines
477 B
JavaScript
25 lines
477 B
JavaScript
require("dotenv").config();
|
|
|
|
const http = require("http");
|
|
|
|
const createApp = require("./config/express");
|
|
|
|
const app = createApp();
|
|
|
|
const server = http.createServer(app);
|
|
|
|
const PORT = process.env.PORT || 3000;
|
|
|
|
server.listen(PORT, () => {
|
|
|
|
console.log("");
|
|
|
|
console.log("===================================");
|
|
|
|
console.log("🚀 PantryHub gestart");
|
|
|
|
console.log(`🌍 http://localhost:${PORT}`);
|
|
|
|
console.log("===================================");
|
|
|
|
}); |