From 73b7d39427958094d9bf34a492cb2deb358a354b Mon Sep 17 00:00:00 2001 From: thepriefy Date: Fri, 27 Oct 2017 10:00:47 +0700 Subject: [PATCH 1/2] Add a .env_sample file, update gitignore, update README,md --- .env_sample | 1 + .gitignore | 1 + README.md | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 .env_sample diff --git a/.env_sample b/.env_sample new file mode 100644 index 0000000..30857f4 --- /dev/null +++ b/.env_sample @@ -0,0 +1 @@ +export SENDGRID_API_KEY='' \ No newline at end of file diff --git a/.gitignore b/.gitignore index 625212a..0e68d82 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ .DS_Store npm-debug.log +.env \ No newline at end of file diff --git a/README.md b/README.md index 77f5f56..9dd008a 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,24 @@ Install smtpapi-nodejs and its dependencies: npm install ``` +## Setup Environment Variables + +### Initial Setup + +```bash +cp .env_sample .env +``` + +### Environment Variable + +Update the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example: + +```bash +echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env +echo "sendgrid.env" >> .gitignore +source ./sendgrid.env +``` + ## Dependencies - Please see [package.json](https://github.com/sendgrid/smtpapi-nodejs/blob/master/package.json) From 693100f6d945e9f9496f6bc7239b36e03f618a63 Mon Sep 17 00:00:00 2001 From: thepriefy Date: Sun, 29 Oct 2017 16:42:18 +0700 Subject: [PATCH 2/2] remove duplicate section --- README.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/README.md b/README.md index 9dd008a..77f5f56 100644 --- a/README.md +++ b/README.md @@ -61,24 +61,6 @@ Install smtpapi-nodejs and its dependencies: npm install ``` -## Setup Environment Variables - -### Initial Setup - -```bash -cp .env_sample .env -``` - -### Environment Variable - -Update the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example: - -```bash -echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env -echo "sendgrid.env" >> .gitignore -source ./sendgrid.env -``` - ## Dependencies - Please see [package.json](https://github.com/sendgrid/smtpapi-nodejs/blob/master/package.json)