text: const dbName = "funClub";
  const usersCollection = "users";
  const url = "mongodb://localhost:27017/" + dbName;
  
  let port = process.env.PORT || 3000;
  
  const apiList = [
      { method: "POST", description: "", api: "/api/user/unique", params: { username: "<string>", } },
      {
          method: "POST", description: "", api: "/api/user/create", params: {
              firstname: "<string>",
              lastname: "<string>",
              username: "<string>",
              password: "<string>",
              emailID: "<string>",
              contactNumber: "<string>",
          }
      },
      { method: "POST", description: "", api: "/api/user/delete", params: { username: "<string>", } },
      {
          method: "POST", description: "", api: "/api/user/update", params: {
              username: "<string>",
              update: {
                  firstname: "<string>",
                  lastname: "<string>",
                  password: "<string>",
                  emailID: "<string>",
                  contactNumber: "<string>",
              }
          }
      },
      { method: "POST", description: "", api: "/api/user/get", params: { username: "<string>", } },
  
      // { method: "POST", api: "/", },
  ];
  
  const express = require('express');
  const bodyParser = require('body-parser');
  const MongoClient = require('mongodb').MongoClient;
  
  let app = express();
  
  let userController = require("./users-controllers");
  // Import routes
  let root = express.Router();
  let userRoutes = express.Router();
  
  app.use(bodyParser.urlencoded({ extended: false }));
  app.use(bodyParser.json());
  
  // Use Api routes in the App
  app.use('/api/user', userRoutes);
  app.use('/', root);
  
  
  //To add the User
  //POST: http://localhost:3000/api/user/unique
  userRoutes.post('/unique', (request, response, next) => {
      userController.user_unique(request, response, next);
  });
  
  //To add the User
  //POST: http://localhost:3000/api/user/create
  userRoutes.post('/create', (request, response, next) => {
      userController.user_create(request, response, next);
  });
  
  //To get a particular Member
  //POST: http://localhost:3000/api/user/get
  userRoutes.post('/get', (request, response, next) => {
      userController.user_details(request, response, next);
  });
  
  //To Update the User Details
  //PUT : http://localhost:3000/api/user/update
  userRoutes.post('/update', (request, response, next) => {
      userController.user_update(request, response, next);
  });
  
  //To delete the User Details
  //DELETE : http://localhost:3000/api/user/delete
  userRoutes.post('/delete', (request, response, next) => {
      userController.user_delete(request, response, next);
  });
  
  
  //POST : http://localhost:3000/*
  root.post('*', (request, response, next) => {
      response.json(apiList);
  });
  //GET : http://localhost:3000/*
  root.get('*', (request, response, next) => {
      response.json(apiList);
  });
  
  
  app.listen(port, () => {
      console.log('NodeJS Server started at localhost ' + port);
  });
  