package
0.0.0-20240618082255-83008eb4fce2
Repository: https://github.com/bittorrent/go-btfs.git
Documentation: pkg.go.dev
# README
Required Assets for the Gateway
DAG and Directory HTML for HTTP gateway
Updating
When making updates to the templates, please note the following:
- Make your changes to the (human-friendly) source documents in the
src
directory. - Before testing or releasing, go to
assets/
and rungo generate .
.
Testing
- Make sure you have Go installed
- Start the test server, which lives in its own directory:
> cd test
> go run .
This will listen on localhost:3000
and reload the template every time you refresh the page. Here you have two pages:
localhost:3000/dag
for the DAG template preview; andlocalhost:3000/directory
for the Directory template preview.
If you get a "no such file or directory" error upon trying go run .
, make sure you ran go generate .
to generate the minified artifact that the test is looking for.