Categorygithub.com/esacteksab/wilddata
repositorypackage
0.0.5
Repository: https://github.com/esacteksab/wilddata.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

Name TBD

We'll figure out a pithy description soon.

Setup

  • Clone this repository.
  • Clone the front end repository
  • Install Direnv
    • Ensure you hook direnv into your shell
    • DO NOT put API keys, or any secrets in .envrc -- use .envrc.local which should be excluded in .gitignore
  • This uses gorm datatypes
    • Requires running go get gorm.io/datatypes and then running go build --tags json1
      • You may also need to run go mod vendor once to appease the Go packaging gods.

Build

  • make build

Docker Stuff

A Docker container is pushed to Github Packages via .github/workflows/docker-publish.yml. By default the IMAGE_TAG is the git SHA of the branch. But you can tag a commit with git tag -a vX.X.X $SHA then git push --tags. This pushing of tags will trigger GitHub Actions to run the workflow and build a Docker container with an IMAGE_TAG of the semver from the tag based on that git commit SHA from above.

Testing (sort of)

You can use a VSCode extension called rest-client. The .http files are located in REST_API_TEST directory. This makes it a little easier to do a GET or a POST and it's possible to share.

  • go run wilddata.go