text: const express = require("express");
  const app = express();
  const cors = require("cors");
  const morgan = require("morgan");
  const authRouter = require("./routes/auth.routes");
  const productRouter = require("./routes/product.routes");
  const categoryRouter = require("./routes/category.routes");
  const brandRouter = require("./routes/brand.routes");
  const orderRouter = require("./routes/order.routes");
  const reviewRouter = require("./routes/review.routes");
  const cartRouter = require("./routes/cart.routes");
  require("dotenv").config();
  require("./DBConnection.js")();
  app.use(cors());
  app.use(express.json());
  app.use(morgan("combined"));
  // Routes
  app.use("/auth", authRouter);
  app.use("/product", productRouter);
  app.use("/category", categoryRouter);
  app.use("/order", orderRouter);
  app.use("/brand", brandRouter);
  app.use("/review", reviewRouter);
  app.use("/cart", cartRouter);
  // Start server
  app.listen(process.env.PORT);
  