Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/altwalker/model-visualizer
- Owner: altwalker
- License: gpl-3.0
- Created: 2022-10-26T10:07:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T16:15:27.000Z (8 months ago)
- Last Synced: 2024-04-01T17:32:32.109Z (8 months ago)
- Topics: altwalker, graphwalker, javascript, model-based-testing, nodejs
- Language: JavaScript
- Homepage: https://altwalker.github.io/model-visualizer/
- Size: 1.21 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).