Skip to content

Commit

Permalink
Add a .env_sample file, update gitignore, update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thepriefy committed Oct 27, 2017
1 parent 5344af0 commit 72d1743
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env_sample
@@ -0,0 +1 @@
export SENDGRID_API_KEY=''
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -10,4 +10,5 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

.DS_Store
.DS_Store
.env
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -38,6 +38,25 @@ All updates to this library is documented in our [CHANGELOG](https://github.com/
```bash
go get github.com/sendgrid/smtpapi-go
```

## 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
```

<a name="quick-start"></a>
# Quick Start

Expand Down

0 comments on commit 72d1743

Please sign in to comment.