-
Clone this repository:
git clone https://github.com/mihirmore25/todo_list.git
-
cd todo_list
-
npm install
-
For Mongoose connection with MongoDB Use, user authentication & authorization or you can remove the code from line no. 11 to line no. 17 in
db/dbConnection.js
const connectionInstance = await mongoose.connect(`${process.env.MONGO_URI}/${DB_NAME}`)
// Add above code in dbConnection.js, without authentication or auhtorization
npm run dev
$ npm run dev
> todo_list@1.0.0 dev
> nodemon server.js
[nodemon] 3.1.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node server.js`
Server is running/listening on port 3000
MONGODB CONNECTED! ON DB HOST: 127.0.0.1 ON PORT: 27017