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 003a205 commit 9bd0b7f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Empty file added .env_sample
Empty file.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
temp.go
*.swp
.env
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,24 @@ source ./sendgrid.env

- [rest](https://github.com/sendgrid/rest)

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

1 comment on commit 9bd0b7f

@techonomics69
Copy link

@techonomics69 techonomics69 commented on 9bd0b7f Sep 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo "export SENDGRID_API_KEY='XXXXXX'" > sendgrid.env echo "sendgrid.env" >> .gitignore source ./sendgrid.env

Please sign in to comment.