Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

hof-generator

Package Overview
Dependencies
Maintainers
9
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hof-generator

CLI to quickly generate the file and folder structure for a basic hof app

latest
Source
npmnpm
Version
0.7.8
Version published
Weekly downloads
16
-72.88%
Maintainers
9
Weekly downloads
 
Created
Source

hof-generator

CLI to quickly generate the file and folder structure for a basic hof app

Install

hof-generator should be installed globally to allow access to the hof command on $PATH

npm install -g hof-generator

Usage

Create a brand new hof project in a directory:

$ hof init [dir] [--app <name>]

Options

  • dir - the root directory of your application - Default .
  • app - the name of your first application - Defaults to the name of the target directory

Create a new app in an existing hof project:

$ hof app <name>

Options

  • name - the name of the application to add - Required

Running your app

Once you have created a new app, you can run it locally with npm start - Note: this will need a local redis instance running. You can then access your service in a browser at http://localhost:8080.

Alternatively, a basic docker-compose configuration is included, which will bundle redis and an nginx proxy. Run docker-compose up to start these services. You can then access your service in a browser at https://localhost.

FAQs

Package last updated on 22 Oct 2020

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