Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/altwalker/model-visualizer

A JavaScript library for visualizing and visualy editing JSON models for AltWalker and GraphWalker.
https://github.com/altwalker/model-visualizer

altwalker graphwalker javascript model-based-testing nodejs

Last synced: 3 days ago
JSON representation

A JavaScript library for visualizing and visualy editing JSON models for AltWalker and GraphWalker.

Awesome Lists containing this project

README

        

# Model-Visualizer

A JavaScript library for visualizing and visually editing JSON models for [AltWalker](https://altwalker.github.io/altwalker/) and [GraphWalker](http://graphwalker.github.io/).

## Installation

### Browser scripts

You can get the latest browser-ready script:

* https://altwalker.github.io/model-visualizer/build/model-visualizer.css
* https://altwalker.github.io/model-visualizer/build/model-visualizer.js

#### CSS

Copy-paste the stylesheet `` into your `` before all other stylesheets to load our CSS.

```html

```

#### JS

Place the following ``s near the end of your pages, right before the closing `</body>` tag, to enable them.

```html
<script src="https://altwalker.github.io/model-visualizer/build/model-visualizer.js">
```

### Required Dependencies

* [Vue.js](https://vuejs.org/)
* [lodash](https://lodash.com/)

### Optional Dependencies

* [Milligram](https://milligram.io/) (__Optional__) - for the forms design.

## Example

The following code initializes `ModelVisualizer` in `editMode` inside the element with the id `visualizer`, using default models defined in the library.

```js
let visualizer = new ModelVisualizer({container: "visualizer", editMode: false});
```

Yo can find a working example [here](https://altwalker.github.io/model-visualizer/_static/examples/edit-mode.html).

## Setting Up a Development Environment

Install the npm dependencies:

```bash
$ npm install
```

### Running locally

```bash
$ npm run dev
```

Now you can visit http://localhost:8080/ and you should see a live demo.

### Building

```bash
$ npm run build
```

Will create a build inside the `public/` directory.

### Running Tests

```bash
$ npm run test
```

## Support

For help, discussion about best practices, sharing ideas, projects, or any other conversation that benefits from being searchable:

* [Discuss AltWalker on GitHub](https://github.com/orgs/altwalker/discussions)
* [Google Group](https://groups.google.com/g/altwalker)

For casual chit-chat with us or with other members of the community:

* [Gitter Chat Room](https://groups.google.com/g/altwalker)

## License

This project is licensed under the [GNU General Public License v3.0](LICENSE).