1
1
# ipieces
2
2
3
- ipieces is a Go package used to create Geocaching puzzles such as [ GCB1ZXB] ( https://coord.info/GCB1ZXB ) .
3
+ ipieces is a Go package used to create Geocaching puzzles such as
4
+ [ GCB1ZXB] ( https://coord.info/GCB1ZXB ) .
4
5
5
6
## Documentation
6
7
7
8
Available at https://pkg.go.dev/github.com/bitlux/caches/ipieces .
8
9
9
10
## Deployment instructions
10
11
11
- I deploy on [ Google Cloud Run] ( https://cloud.google.com/run ) . To do that, you must first sign
12
- into the [ Google Cloud console] ( https://console.cloud.google.com/ ) ,
13
- [ create a project] ( https://cloud.google.com/resource-manager/docs/creating-managing-projects ) , and have
14
- [ ` gcloud ` ] ( https://cloud.google.com/sdk ) installed.
12
+ I deploy on [ Google Cloud Run] ( https://cloud.google.com/run ) .
13
+ https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-go-service is a good
14
+ reference on how to us Google Cloud Run.
15
+
16
+ Create a directory for your project and put your code in a file named ` main.go ` . Run
17
+ ` go mod init <module name> ` to create a module (because your ` main.go ` imports packages outside the
18
+ standard library, Google Cloud Run requires it to be in its own module).
15
19
16
20
To deploy, ` cd ` to the directory with your ` main.go ` file and run:
17
21
```
18
- gcloud run deploy --source . <project > [--allow-unauthenticated]
22
+ gcloud run deploy --source . <service > [--allow-unauthenticated]
19
23
```
24
+ where ` <service> ` is any name you want.
20
25
21
26
## Testing
22
27
@@ -29,4 +34,4 @@ where `<backdoor>` is the `Puzzle.Backdoor` string you set.
29
34
## Contact / Support
30
35
31
36
I welcome issues and pull requests on GitHub and messages and email on
32
- [ geocaching.com] ( https://www.geocaching.com/profile/?u=bitlux ) .
37
+ [ geocaching.com] ( https://www.geocaching.com/profile/?u=bitlux ) .
0 commit comments