Trying to build an email app with node js and mongoDB
- Clone repository https://github.com/Gunner17/nodeemail.git
- Go inside nodeemail/email/
- Install the dependencies - npm install
- start the server : nodemon app.js
- The app would run in http://localhost:3000/api/setupEmails in the browser.
- we can delete, fetch, search for the existing records (for now).
http://localhost:3000/api/setupEmails
To delete record, I am sending a POST request through PostMan.
Content-Type: application/json
type : DELETE
body > raw > JSON(application/json) > { "id": "57c7e1c01d54948b534b953a" }
Can search records using the sender's address. http://localhost:3000/email/search/[email protected]