System Runtime

System Runtime

  • Languages iconRomână
    • ENGLISH
    • Ajutati-ne cu Traducerea
  • SUPPORT
  • GITHUB

›Introducere

Introducere

  • What is System Runtime ?
  • System Runtime architecture
  • What is Design First ?
  • Prezentare generală

Ghiduri

  • Quick Start
  • How to install System Runtime
  • Design your model
  • Creează componente
  • Manage your components
  • Bundle your system
  • Extend System Runtime
  • Go deeper

Exemple

  • Un elementar ''hello world''
  • Create-a-bundle
  • Install a bundle client-side
  • Instalează un pachet in HTML
  • Instalează un pachet server-side
  • Package a bundle
  • Create a component
  • Crează tipuri noi
  • Crează o relație unu la unu
  • Crează multe relații unu la unu
  • Navighează prin modele
  • Inheritance between components
  • Listen to a change of state of a component
  • Use System Runtime NoSQL Database
  • Object-Document Mapper in action
  • Use System Runtime core apis
  • Use System Runtime history apis
  • Quick Start example

APIS

  • Component Clasă
  • runtime Component
  • metamodel Component
  • logger Component
  • Component db
  • history Component
  • Colecție Document

Despre

  • Cine este în spatele lui System Runtime?
  • License
Translate

What is System Runtime ?

Când codezi, nu creaţi o aplicaţie, creaţi de fapt un . Sistem Runtime vă dă API-uri pentru a crea modelul, componente și comportamente ale sistemul dvs.

What is a system ?

A system:

  • este definit de un model,
  • este compus din componente şi
  • reacționează la evenimentele cu acțiuni care o numim comportamente..

Image Alt

Create a system

Utilizează API-uri ale lui System Runtime pentru a crea sistem tău:

// Creaţi un sistem
let system = runtime.system('mysystem');

/ / adăuga codul metodei în startul sistemului
system.on ('start', () => console.log ("Hello world!"));

/ / Începe sistemul dvs.
system.start();

Acum poți împacheta sistemul tău într-un obiect JSON:

// crează un pachet
runtime.bundle();

O să returneze acest JSON:

{
  "_id": "154cd18d0210516",
  "name": "system",
  "description": "",
  "version": "0.0.1",
  "schemas": {},
  "models": {},
  "types": {},
  "behaviors": {
    "1ea9c1d5f811ae1": {
      "_id": "1ea9c1d5f811ae1",
      "component": "154cd18d0210516",
      "state": "start",
      "action": "() =>> console.log('Hello world !')",
      "useCoreAPI": false,
      "core": false
    }
  },
  "components": {}
}

Instalează pachetul in HTML

Trebuie doar să adăugaţi un tag link în codul HTML pentru a instala și a porni pachetul:

<!-- impostează-ți JSON-ul -->
<link rel="system" type="application/json" href="system.json">

<!-- încarcă System Runtime -->
<script src="https://cdn.jsdelivr.net/npm/system-runtime/dist/system-runtime.min.js"></script>

Instalează pachetul in Node.js

Doar apelează la install și start metode pentru a executa pachetul tău:

// trebuie System Runtime
const runtime = require('system-runtime');

// instalează-ți și începe-ți sistemul
runtime.install('system.json');
System Runtime architecture →
  • What is a system ?
  • Create a system
  • Instalează pachetul in HTML
  • Instalează pachetul in Node.js
System Runtime is distributed under Apache License 2.0 - Copyright © 2024 Erwan Carriou