Skip to content

Delink-D/nodeemails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodeemails

Nodejs-Emails: An app that gets data from the database Couchdb and sends an email to the provided address

Requirements

To get started you need nodejs and npm installed in your local machine. to install node follow: Nodejs. npm (node package manager) is installed once the node have been installed

You need a config file, a json file that holds the database credetials and the email credetials. For a config file, create a folder config on the root project and create a file cpnfig.json in the folder

example:

{
  "couchdb": {
    "serverUrl": "https://couch.example.com",
    "dbname": "databaseName",
    "username": "dbUsername",
    "password": "dbPassword"
  },
  "email": {
    "host": "smtp.gmail.com",
    "port": 465,
    "secure": true,
  	"emailid": "example@gmail.com",
  	"password": "password",
  	"from": "example@gmail.com",
    "to": "receiver@gmail.com"
  }
}

Grab the code

Clone this repo into new project folder.

git clone https://github.com/Delink-D/nodeemails.git
cd nodeemails

Install npm packages

Install the npm packages described in the package.json and verify that it works:

npm install

Development server

Run node app.js for a server.
You may wish to user other server starts line nodemon which you have to install.
once the server runs the sending of emails should be executed.

Recommended reading

About Nodemailer and how to use Nodemailer
About nodejs nodejs
Getting started with Pouchdb pouchdb
Nano documentation couchdb-nano

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published