Socket
Socket
Sign inDemoInstall

visual-express

Package Overview
Dependencies
77
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    visual-express

Visual UI for Express


Version published
Weekly downloads
16
increased by433.33%
Maintainers
1
Install size
35.1 MB
Created
Weekly downloads
 

Readme

Source

Visual Express

vulnerabilities

VX is a dynamic layer for the well-known express, where listeners, routes and handlers are created from a configuration file, which can be modified using an intuitive user interface.

Environments

With ease you can set your application to run in 3 different modes:

  • As a single process
  • As a cluster (multiple CPUs)
  • Or as a Lambda function in AWS (Amazon Web Services)

Zero Downtime

Due to its architecture, VX aims to deliver functionalities to allow zero downtime migrations. The most important feature is the auto-reload, where routes can be created or changed on the fly during runtime.

As an example, temporary routes can be created to test new handlers, and once these handlers are tested they can be reassigned to permanent routes.

It's a good approach to guarantee the integrity of new handlers running in a new environment for the first time, where they can even run in the same production environment (with temporary routes) without affecting the whole system.

Installation

Initialize a new NPM project and then install visual-express and aws-sdk:

$ npm init
$ npm install visual-express aws-sdk --save --save-exact

Initialize directories for custom configurations and dynamic handlers:

$ node node_modules/visual-express/vxpress-init.js

To be able to publish dynamic handlers, go inside dynamic folder and initialize it running:

$ cd dynamic
$ yarn-install.sh

Note: the reason dynamic has its own node_modules is to avoid having node-minify and a bunch of related packages as part of the main deployed product, meaning almost 20 megabytes bigger.

All set and ready to go, let's start the server! Run the following command:

$ node server-start.js

Documentation

Read the full documentation wiki for more details.

Keywords

FAQs

Last updated on 30 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc