rest
SendGrid's Golang HTTP Client for calling APIs
File Explorer
Download Latest Version (.zip)- pr-lint.yml
- test.yml
- Dockerfile
- example.go
- example.go
- github-fork.png
- github-sign-up.png
- README.md
- .env_sample
- .gitignore
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- docker-compose.yml
- FIRST_TIMERS.md
- LICENSE
- Makefile
- PULL_REQUEST_TEMPLATE.md
- README.md
- rest.go
- rest_test.go
- TROUBLESHOOTING.md
- twilio_sendgrid_logo.png
- USAGE.md
# Installation Guide
1. Get the code
git clone https://github.com/sendgrid/rest
Downloads the entire project code from GitHub to your computer.
cd rest
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker-compose up -d --build
Runs the command against the services defined in the compose file.
docker ps
Type this command into your terminal and run it.
docker exec rest_go_1 go run docker/example.go
Runs the Go program directly without a separate build step.
docker exec rest_go_1 go get github.com/uniplaces/carbon
Type this command into your terminal and run it.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
3. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation
Was this content helpful?
(0 ratings)
