Coder Social home page Coder Social logo

hop-cli's Introduction

HOP-CLI

A command line interface for HOP

Dependencies MIT License

The idea

The HOP CLI creates, manages, builds and runs your HOP-based projects. The idea behind it was from Angular-CLI which helps developers create and manage their projects in no time. I created this project so you can easily install a HOP instance with your desired config with just one command.

Prerequisites

Both the CLI and generated project have dependencies that require Node 10 or higher, together with NPM 5.5.1 or higher. It is recommended to update your node Node and NPM to latest version before running this application. Running the application using lower versions of Node and NPM has not been tested yet; It might work, but you might face some warnings about the experimental features of Node API.

Table of Contents

Installation

BEFORE YOU INSTALL: please read the prerequisites

Install globally (recommended)

npm install -g @hbbtv/hop-cli

Install locally

npm install @hbbtv/hop-cli

To run a locally installed version of the hop-cli, you can call hop commands directly by adding the .bin folder within your local node_modules folder to your PATH. The node_modules and .bin folders are created in the directory where npm install @hbbtv/hop-cli was run upon completion of the install command.

Generating and serving a HOP project via a development server

hop new PROJECT-NAME
cd PROJECT-NAME
hop serve

Navigate to http://localhost:3000/. The app will automatically reload if you change any of the source files.

Generating modules

You can use the hop module command to generate HOP modules:

hop module my-new-module

# your module will be generated in src/modules/my-new-module

To update HOP CLI to a new version, you must update both the global package and your project's local package.

Global package:

npm uninstall -g @hbbtv/hop-cli
npm cache verify
# if npm version is < 5 then use `npm cache clean`
npm install -g @hbbtv/hop-cli@latest

Compiling the application

You can use the hop build command to build your HOP application:

hop build

# your built app will be in dist folder

After building your application, you can copy contents of dist folder to your web-server root folder and use the URL in AIT table of transponder.

hop-cli's People

Contributors

dependabot[bot] avatar faridv avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  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.