This commit is contained in:
Maciej Kotowski committed 2021-10-02 17:27:58 +02:00
commit bed77f0c03
6 files changed
+28 -2254

No files matched your search

+6 -5
View File
@@ -1,6 +1,7 @@
const express = require("express");
const app = express();
const port = process.env.PORT || 3000;
const express = require('express')
const app = express()
const port = process.env.PORT || 3000
const { MONGO_URI } = require("./config");
const mongoose = require("mongoose");
const events = require("./models/events");
@@ -23,5 +24,5 @@ app.get("/api/getEvents", async (req, res) => {
});
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`);
});
console.log(`Example app listening at http://localhost:${port}`)
})