Giter Site home page Giter Site logo

design-first / system-designer Goto Github PK

View Code? Open in Web Editor NEW
909.0 55.0 130.0 48.72 MB

A low-code development platform for creating systems πŸ‡ΊπŸ‡¦#standwithUkraine

Home Page: https://designfirst.io/systemdesigner/

License: Apache License 2.0

JavaScript 10.97% CSS 34.42% HTML 53.56% Gherkin 0.99% Shell 0.06%
ide uml model metamodel system schema javascript low-code mson

system-designer's Introduction

System Designer

cucumber tests

Image Alt

What is System Designer ?

No matter the frameworks you use and the code you write, the most important is the model that you define to create your system. System Designer helps you to design this model and to generate the classes and components to build your system.

What is a system ?

With System Designer you create in fact a system and not an application. But what is a system ?

A system:

  • is defined by a model,
  • is composed by components and
  • reacts to events with actions that we call behaviors.

Image Alt

What can I do with System Designer ?

Design your system with ease

If you look at the different JavaScript frameworks on the market, you will notice that they all have their own way to define a model, generally only with code.

System Designer uses UML, a standard, to define your model. So you probably already know how to design in System Designer even if you have never run it.

The definition of the model is stored on a JSON format called MSON. With MSON you can define types, classes, one to one / one to many relationships and multi inheritance between classes.

Code the behavior of your system

Once you have created your model, System Designer generates the skeletons of all your methods. You only have then to add your code to implement them.

System Designer provides you helpers to manage your components. You can easily navigate through components to create your application.

Create components graphically

There is no need to code to instantiate a component. Create a component in System Designer is like creating a document in a NoSQL Database.

In fact, System Designer acts as an ODM (Object-Document Mapper) to manage your components as NoSQL Documents.

Run your system

You can run your system directly from System Designer and then export it to HTML, JSON, JavaScript, a Node.js module or a Graphviz file (* macOS, Windows, Linux and PWA version only).

Because you have defined a model for your application, a Dynamic Type Check is done on every action of your system. All warnings are send and shown in System Designer.

Debug your system

System Designer can load the model of any system that runs on the browser or on Node.js. You can see the schemas, models, components and methods of the running system and you can edit them.

All modifications to the model done inside System Designer will be send to the running system. There is no need to reload to see your modifications.

Design on the go

System Designer can be used on Windows, macOS, Linux, iOS, iPad, Android or any browsers. You can also install it in your project: System Designer requires no backend to work, it is a full web application.

System Designer has a GitHub module to synchronize your work between all these apps. You can begin your design on your Mac and then continue it on your iPad.

Build

Installation

Clone the repository:

git clone https://github.com/design-first/system-designer.git

Once you have cloned the repository, install the dependencies:

npm i

Build for web

Here are the different tasks you can use to build and start System Designer as a Progressive Web App (PWA):

npm run web

Then you can start the server:

npm run start

Once server started, go to http://localhost:8080/.

Build for macOS / Windows / Linux

To build System Designer for Electron:

npm run electron

Copy the content of /dist directory into your System Designer for Electron project.

Then in your System Designer for Electron project:

# build for macOS
npm run macOS

# build for Windows
npm run windows

# build for Linux
npm run linux

Build for iOS / Android

To build System Designer for Cordova:

npm run cordova

Copy the content of /dist directory into your System Designer for Cordova project.

Then in your System Designer for Cordova project:

# build for ios
npx cordova build ios

# build for android
npx cordova build android

Development

Web

To start System Designer in development mode for web:

npm run dev

Once server started, go to http://localhost:9001/. All the modifications to the source code of System Designer will rebuild the solution and refresh the page.

Mobile devices

To start System Designer in development mode for mobile devices:

npm run dev-cordova

Once server started, go to http://localhost:9001/. All the modifications to the source code of System Designer will rebuild the solution and refresh the page.

Documentation

Community

License

Copyright Β© 2024 Erwan Carriou

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Do not use System Designer if you do not believe in Equality and Diversity.

System Designer is not for people of hate.

system-designer's People

Contributors

ecarriou avatar gitter-badger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

system-designer's Issues

Adapt UI for iPhone

For the moment iOS version of System Designer is limited to iPad. We want to make the app usable to at least on a iPhone 6 screen.

Add more checks on schema edition

When editing a schema, add warnings if:

  • attribute name contains a space and
  • attribute name begins with '_' : in JavaScript, we generally use the '_' notation in the name of an attribute to express that it is private, we forbid that.

Create a system for the editor

In order to complete task #34, we need to extract the code that manage the editor into a system. This system will be load by System Designer as an add-on, so the switch between the 2 editors engine (ace and codeMirror will be easy)

Some UI / UX improvements

  • on Cordova, make some test with an editor with a full height,
  • rename Github into GitHub (typo fix),
  • on Cordova, add some autocomplete ?
  • Compose button management : not primary and hidden,
  • Check why there is an error on Internet Explorer with export and
  • add a message on Safari to explain how to export.

Add 'default' property for type definition

Add default property for type definition.

example: { "name": "address", "type": "object", "schema": { "city": { "type": "string", "mandatory": false, "default": "Paris" } } }

Keep the context when switching tab

When we switch from one tab to another tab we need to keep the context.

For example:

  • if I am on Schemas tab and if I selected Jedi schema, when click on Models tab, I need to be on Jedi model.

Check accessibility

After testing accessibility with Voice Over, here is a list to task to be done:

  • Fix accessibility on System Designer web site
  • Fix toolbar navigation
  • Fix menu navigation
  • Fix element selection focus on workspace with tab
  • Add font size control
  • Check accessibility level of Ace / Code Mirror editors

Improve Github sync dialog

Proposal:

  • Github Pages [] Add page

|-> combo with 'info' as default log

  • NPM module [] Add package.json

And maybe remove Add Node.js file choice.

Use CodeMirror editor for mobile versions

System Designer uses ace for editing schemas/models/behaviors/.... We use this library for the web / desktop and mobile versions of the IDE. It seems that it is not optimize for touch screens.
To fix this issue, we will use CodeMirror instead for mobile device.

It means:

  • Electron and web versions will use ace editor,
  • Cordova version will use CodeMirror and
  • they will be used threw the editor component that will choose the correct editor depending of the context.

ergonomics(buttons): tooltip on button icon

To know what the buttons really do, you need to click on them - even if they have a shape that can give some insights, the actions they trigger changes between the context they are displayed (system, shema ...).

Simple way would be to add a title="..." attribute.

Improve UI when drag/drop a system

When user drag/drop a system (in JSON format) on System Designer:

  • a dialog is shown and
  • if there is a current system, a Compose system is shown.

Set log level to 'info' by default

By default, when exporting to HTML or to Node.js, we log all the messages (from debug level). It is better to set this level to info by default.

Bug on chinese / korean input

There is a regression with the current editor based on ace: there is a strange behavior when typing in chinese or korean in the editor.

First we fix the issue and maybe in a next release we migrate to CodeMirror

Many small improvements

  • update videos that are shown on first start of System Designer
  • update Grunt scripts
  • fix markup of Cordova and Electron app
  • fix bug that happens sometimes when focusing the app on Electron
  • update HTML on export
  • fix typo on readme

Improve UI

  • Separate models and system component
  • description of system keeps return

Fix minor UI / UX bugs

  • improve the context of help
  • format HTML on export
  • a schema can not have the same name as the system
  • a system or a schema can not have # in the name
  • fix typo error on example-dvd-collection system

Always allow search for systems

Use case to solve: System Designer is deployed on the same server as the application and user want to design "on the fly" the running app.

Todo:

  • if user click on 'design' button, add a dialog if no configuration set for designing
  • propose choice to user to search for running system or not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.