Skip to content

eine/dtd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[DTD] Yet another Digital Timing Diagram tool

Waveform description formats

Repository (directory) organization

  • api: go(lang) sources of the AJAX service and the file server (backend).
  • app: HTML + CSS + JavaScript sources of a web-based GUI to provide a responsive and customizable layout for visualization (frontend).
  • assets: common logos, images...
  • build: development and release resources (mostly shell scripts).
  • cli: go(lang) sources of the CLI tool which provides a clean and documented access to conversion functions implemented in dtdlib.
  • doc: markdown sources of the documentation (a Hugo site).
  • dtdlib: go(lang) sources that are used by api and cli, and are expected to be used as a library by external projects.
  • test: example waveforms in different file formats.

Development

Script build/init_devenv.sh ensures that all the dependencies of api, app, cli and dtdlib are up to date. However, a few dependencies are required to execute it, and to later work with the sources: yarn (nodejs), golang, git...

In order to make development easier, a docker image is provided. Script build/docker_devenv.sh runs a temporal container, executes init_devenv.sh and provides a shell.

Note that, by default, port 8080 inside the container is bind to 5555 in the host. As a result, localhost:5555 should be browsed/used when the app and/or api are being tested, even though the services are configured to 8080 inside the container.

Proceed to the READMEs in each of the subdirs for further info.

Releases

There are multiple options to release DTD.

  • dtd-slim: cli; command-line interface (CLI) tool to convert diagrams/waveforms between formats.
  • dtd-app: api [+ app]; service running in the background that accepts AJAX requests, and optionally serves a local directory.
  • dtd: cli + api [+ app]: 'dtd-slim' and 'dtd-service' in a single binary.

While 'dtd-slim' is distributed as a single binary file, 'dtd-app' and 'dtd' release files are tarballs. This is because app (frontend) sources are given uncompressed in the same tarball, and its content is expected to be served by api (backend). To disable this behaviour, use flag --nofs | -n or set the directory to none with --dir none | -d none. The result will be an AJAX-only service.

Moreover, static files, such as the sources of app, can be embedded in a go binary file (see gobuffalo/packr). Therefore, 'dtd-pack' and 'dtd-app-pack' variants can be produced. These provide the same functionality, but a single binary file is distributed, instead of a tarball.


In order to generate release tarballs, first set the devenv (either build/docker_devenv.sh -docker- or build/init_devenv.sh -local-). Then, execute build/release.sh, which will build all the pieces and generate tarballs in the root dir. Last, and optionally, execute build/release_img.sh to generate docker images from scratch.

Note: release_img.sh must be executed in the host, not inside a container.

Refs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published