Skip to content

Commit 0344fa2

Browse files
committed
Add a .env_sample file, update gitignore, update README.md
1 parent 5f95c89 commit 0344fa2

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

Diff for: .env_sample

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export SENDGRID_API_KEY=''

Diff for: .gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,6 @@ $RECYCLE.BIN/
323323
*.lnk
324324

325325
# Code
326-
/.vscode
326+
/.vscode
327+
328+
.env

Diff for: README.md

+18
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,24 @@ For sample implementations, see the [.NET Core Example](https://github.com/sendg
103103

104104
- Please see the [.nuspec file](https://github.com/sendgrid/sendgrid-csharp/tree/master/nuspec).
105105

106+
## Setup Environment Variables
107+
108+
### Initial Setup
109+
110+
```bash
111+
cp .env_sample .env
112+
```
113+
114+
### Environment Variable
115+
116+
Update the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example:
117+
118+
```bash
119+
echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
120+
echo "sendgrid.env" >> .gitignore
121+
source ./sendgrid.env
122+
```
123+
106124
<a name="quick-start"></a>
107125
# Quick Start
108126

0 commit comments

Comments
 (0)