Coder Social home page Coder Social logo

visual-express's Introduction

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.

visual-express's People

Contributors

fpenno avatar dependabot[bot] avatar

Watchers

 avatar

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.