pgxtutorial
Example of how to build a web service using Go, PostgreSQL, and gRPC
File Explorer
Download Latest Version (.zip)- codeql.yml
- dependency-review.yml
- integration.yml
- lint.yml
- osv-scanner.yml
- dependabot.yml
- FUNDING.yml
- api.go
- grpc.go
- http.go
- api.pb.go
- api_grpc.pb.go
- api.proto
- gen.go
- database.go
- database_test.go
- interface.go
- helper_test.go
- inventory.go
- inventory_test.go
- mock_db_test.go
- review.go
- review_test.go
- service.go
- service_test.go
- helper_test.go
- postgres.go
- postgres_test.go
- telemetrytest.go
- telemetrytest_test.go
- telemetry.go
- telemetry_test.go
- 001_initial_schema.sql
- ci-lint-fmt.sh
- ci-lint.sh
- coverage.sh
- go.mod
- go.sum
- LICENSE.md
- main.go
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/henvic/pgxtutorial
Downloads the entire project code from GitHub to your computer.
cd pgxtutorial
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Go Go is required to use go install.
go install github.com/henvic/pgxtutorial@latest
Downloads and installs the specified version directly β no need to clone the repo yourself.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Go
MediumPrerequisites
$ go run .
Runs the Go program directly without a separate build step.
go install github.com/henvic/pgxtutorial@latest
Downloads and installs the specified version directly β no need to clone the repo yourself.
If the build finishes without errors, it worked. If you used go run ., check the terminal output.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
