Socket
Socket
Sign inDemoInstall

generator-uservice

Package Overview
Dependencies
576
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    generator-uservice

Generate structure and license for my microservices


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Installation

There are two ways to install: as a submodule or a microserver.

1. As submodule
npm install --save <%- name %>
2. As microservice
git clone http://github.com/<%- ghOrg %>/<%- name %>
cd <%- name %>
npm start
Running Microservice with PM2

PM2 is recommended. Here is an example pm2.json

{
  "name"        : "<%- name %>",
  "script"      : "bin/www.js",
  "args"        : [],
  "watch"       : true,
  "node_args"   : "",
  "cwd"         : "/root/path/to/<%- name %>",
  "env": {
    "NODE_ENV": "production",
    "PORT": "6000",
    "NODE_DEBUG": ""
  }
}

More pm2.json documentation available here

Usage

/* Add usage for submodule */
/* Add usage for microservice */

Keywords

FAQs

Last updated on 07 Mar 2016

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