docs: tutorial/example for ngclient Updater
See original GitHub issueEDIT: I think starting with out-of-the-box runnable example code is a better idea: see comment below (original issue follows:)
the updater module docs show how to write a client in five lines of code but they also mention dependencies:
* A webserver running on http://localhost:8000, serving TUF repository
metadata at "/tuf-repo/" and targets at "/targets/"
* Local metadata directory "~/tufclient/metadata/" is writable and contains
a root metadata version for the remote repository
* Download directory "~/tufclient/targets/" is writable
would be nice to have really easy to follow instructions that handle all of that…
The tutorial should live within the documentation but not in the ngclient module docs, just as a page on its own. Actually writing the tutorial is probably a “good first issue”?
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
ng update - Angular
Perform a basic update to the current stable release of the core framework and CLI by running the following command. ... To update...
Read more >Getting started with Angular - Learn web development | MDN
The ng new command creates a minimal starter Angular application on your Desktop. The additional flags, --routing and --style , define how to ......
Read more >Angular TypeScript Tutorial in Visual Studio Code
Angular TypeScript tutorial showing IntelliSense, debugging, and code navigation support in the Visual Studio Code editor.
Read more >Building a web application with Angular and Firebase
In this codelab we'll build together a real-time web application with Firebase and Angular.
Read more >How To Create a Real-Time App with Socket.IO, Angular, and ...
This tutorial was verified with Node v14.6.0, npm v6.14.7, ... The first example we see is when a client connects to the socket...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Before submitting the PR, I am sending a design proposal/draft for local static server
The idea is to start with a simple document describing how to run an example of a client code using the
ngclient
and the static metadata fromtests/repository_data/repository/
.The document will have three basic steps.
The client code example:
The example will be stored inside the
examples/
in the root folder. The reason is that some people check examples, even before the documentation.The idea is a commented code, including references to the API and/or the Specification.
The initial name suggested will be
client_example
as a small Python Command Line Interface (CLI) executable/script.$HOME/.local/share/<app-name-here>/
download
(local directory)The example will be a simple CLI with initial two parameters:
--init
This parameter will create the client’s infrastructure, the metadata folder (including the initial root.json), and the download folder. Running this example will be explicit about all the steps. The CLI will print the messages.
The second scenario is the client already initialized, but the messages above will be the same.
--download <filename>
. Along with the how-to documentation, the instruction will be to download different targets. The goal is to demonstrate flow, the terminology used in the framework, using the steps messages (printing as log), such as:I’m picking up this issue.