System Designer

System Designer

  • Languages iconSvenska
    • English
    • Ελληνικά
    • Português (Brasil)
    • 繁體中文
    • Help Translate
  • SUPPORT
  • GITHUB

›Tutorials

Introduction

  • What is System Designer?
  • What is Design First?
  • Quick Start
  • Quick Start in videos

Guides

  • Installation
  • Create a System
  • Create a Schema
  • Edit a model
  • Create a Behavior
  • Create a Type
  • Create a Component
  • Run your System
  • Export a System
  • Import a System
  • Generate a diagram
  • Sync your systems with GitHub
  • Design a remote client system
  • Design a remote server system
  • Hantera tillägg
  • Extend System Designer
  • Shortcuts

Tutorials

  • List of Examples
  • Bundle your CSS
  • Bundle your JavaScript
  • Bundle your HTML
  • Test a server-side application
  • Create a NPM module
  • Create a website
  • Lyssna efter en modellhändelse
  • Listen to a data store event
  • Send messages
  • Send messages to other systems
  • Create an extension
  • Generate a model from a JSON file
  • Create a Graph system

Articles

  • Articles about the project

About

  • Who is behind System Designer?
  • Privacy Policy
  • License
Translate

Test a server-side application

Version Compatibility

This feature is only available on the Windows, macOS and Linux version of System Designer.

This tutorial will show you how to run a simple Node.js application with System Designer.

Create a system

  • create a system,
  • click on Behaviors tab,
  • click on the start behavior,
  • set the code of the behavior with this code:
function start() { 
  const http = require('http'),
      logger = this.require('logger');

  http.createServer(function (req, res) {
    res.writeHead(200);
    res.end('hello world\n');
  }).listen(1234);

  logger.info('server is running at http://127.0.0.1:1234');
}

Image Alt

Test your system

  • run your system,
  • open a browser,
  • go to http://127.0.0.1:1234 and
  • see the result.

There are some limitations

You can only run systems that uses Node.js native apis.

← Bundle your HTMLCreate a NPM module →
  • Create a system
  • Test your system
System Designer is distributed under Apache License 2.0 - Copyright © 2024 Erwan Carriou