Socket
Socket
Sign inDemoInstall

appframe

Package Overview
Dependencies
83
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    appframe

Basic framework app object for dependency injection, event propagation, and error handling.


Version published
Weekly downloads
90
decreased by-13.46%
Maintainers
3
Install size
6.55 MB
Created
Weekly downloads
 

Readme

Source

appframe.js

Basic Nodejs micro-framework app object for dependency injection, error codes, signal handling, and a few other neat things. npm install appframe --save

Plugins

  • Express - Express web server
  • Redis - Redis Key/value database/store
  • RethinkDB - NoSQL database
  • NATS - Pub/Sub Messsage Queue
  • Ricochet - Pub/Sub Messsage Queue

Usage

This module is intended to improve application design by providing a framework to mount your application into a single object. This object, typically named app is injected into load file you manually require or autoload (using the framework).

This modulue is intended to bootstrap an application with an object variable, which is injected into each autoloaded file for better application design.

Basic Example - Express

In this example, you'll see the most basic setup for this micro-framework where we provide a basic starting point for the injected variable. We load express and setup our controllers in another file.

Framework Example - Express

In this example, you'll see the typcial use case for using this framework. We autoload express and prevent the application from being online AND create a stateful system for gracefully shutting down the server. Our configuration defines autoloading and other systems. Notice how the controller file for the express route did not change, but was just automatically loaded.

Documentation

Coming Soon

Keywords

FAQs

Last updated on 14 Dec 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