go-node-mongo
v0.0.4
Published
Initialise Backend Project on one GO with go-node-mongo. Designed for Node.js Runtime Environment and MongoDB as Database
Downloads
4
Maintainers
Readme
go-node-mongo
Description 📃
- Package to initialise the Backend Project
- Backend Projects allow express and mongoDB as Database
Installation
npm i go-node-mongo
Importing Package 💻
const goNodeMongo = require("go-node-mongo");
Sample Snippet
//import mongoose in the file
//npm i mongoose
const mongoose = require("mongoose");
//import go-node-mongo
const goNodeMongo = require("go-node-mongo");
const mongoConnectionString =
"mongodb://mongodb0.example.com:27017"; /*YOUR LOCALHOST /ATLAS MONGO SRV HERE*/
const app = goNodeMongo(mongoConnectionString, mongoose); //pass URI,mongoose
//use app as server to route..
//example : app.use("/api/v1", SubjectRouter);