Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
index.js 571 B
// import { MongoClient } from "mongodb";
require('./db/mongoose');
require('dotenv').config();
const express = require('express');
//const Notification = require('./schema/schema')

const app = express();
const port = process.env.PORT;
app.use(express.json());

app.get("/", (req, res) => {
  console.log("testing");
  res.send("Hello");

})

const notificationRouter = require("./routes/notification");
app.use("/notification", notificationRouter);

app.listen(port, function () {
  console.log("Notifcation Microservice is running at http://localhost:${port}");
})