Skip to content

Commit

Permalink
[README.md] Update the development code snippet.
Browse files Browse the repository at this point in the history
`go get` no longer works out of the box, so a simple clone is more appropriate.

I've also updated both code snippets in the file to use the same code fences tagged with `shell`.
  • Loading branch information
lgarron committed Jan 22, 2025
1 parent 16426c5 commit 5bfb56f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<h1 align="center">hstspreload.org</h1>
</p>


This folder contains the source for the HSTS preload list submission website at [hstspreload.org](https://hstspreload.org/).

See [github.com/chromium/hstspreload](https://github.com/chromium/hstspreload) for the core library that checks websites against the submission requirements.
Expand All @@ -18,19 +17,20 @@ Requirements
- A `go` development environment.
- The `java` commandline program for running JAR files (for the Cloud Datastore Emulator).

```shell
go get github.com/chromium/hstspreload.org
cd $GOPATH/src/github.com/chromium/hstspreload.org
make serve
```
```shell
git clone https://github.com/chromium/hstspreload.org && cd hstspreload.org
make serve
```

The first time you run it, `make serve` will download the [Cloud Datastore Emulator](https://cloud.google.com/datastore/docs/tools/datastore-emulator) (≈115MB) to a cache directory.

### Deployment

If you have access to the Google Cloud `hstspreload` project:

make deploy
```shell
make deploy
```

Unfortunately, this usually takes 5-10 minutes.

Expand Down

0 comments on commit 5bfb56f

Please sign in to comment.