loader

previous:Build a free Todo REST API with ECMAScript 6 and MongoDB Create Namespace : todonamespace Create function : gettodoapi add uri environment variables DB_URI=mongodb+srv://todoapi:password@cluster0.kppad.mongodb.net/todo?retryWrites=true&w=majority add mongoose dependencies Create a Todo Type const todoSchema = new Schema( { name: { type: String, required: true, }, description: { type: String, required: true, }, status: { type: Boolean, […]

Create Namespace : todonamespace Create function : addtodoapi Creating a database on MongoDB Atlas add uri environment variables DB_URI=mongodb+srv://todoapi:password@cluster0.kppad.mongodb.net/todo?retryWrites=true&w=majority add mongoose dependencies Create a Todo Type const todoSchema = new Schema( { name: { type: String, required: true, }, description: { type: String, required: true, }, status: { type: Boolean, required: true, }, }, { […]