Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pan-os/heimdall

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pan-os/heimdall

A modular approach to add pseudo microservices organization into restify apps

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Heimdall CI status

An organizational and modular approach to handle pseudo microservices into restify applications.

Motivation

The whole idea behind this project is to allow you to manage your API using a structure easy to maintain and split into several packages, heimdall wants to transform your mindset to microservices and help you to keep everything in place.

Installation

$ yarn add @pan-os/heimdall

Requirements

TBD

  • Restify

Usage

Routes entrypoint

/**
 * Module Dependencies
 */
const Heimdall = require('heimdall');
/**
 * Pseudo microservices
 */
const { user } = require('../services');

module.exports = (server) => {
  // Attach microservices to /
  Heimdall.attachMicroservice(server, user);
};

Services folder structure

Represents your microservices

Example Service Structure

// index.js

module.exports = [
  {
    method: 'post',
    path: '/user/register',
    action: (req, res, next) => { ... }
  }
];

// And you will be able to do a post to http://localhost:3000/user/register and 
// also should be able to manipulate/create your response into your action callback

Development

$ yarn start:[env] (dev, prod)

Contributors 🎉

Thanks goes out to all these wonderful people (emoji key):


Sérgio Freitas

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Keywords

FAQs

Package last updated on 08 Oct 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc