Socket
Socket
Sign inDemoInstall

shark-mvc-cli

Package Overview
Dependencies
17
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    shark-mvc-cli

You can get shark-mvc-cli via npm.


Version published
Weekly downloads
0
Maintainers
1
Install size
801 kB
Created
Weekly downloads
 

Readme

Source

shark-mvc-cli

Install

You can get shark-mvc-cli via npm.

$ npm install shark-mvc-cli -g

Usage

Shark cli should be used inside the "src" folder of the project since it will create (if not alredy present) the "components", "models" and "views" folders to place each item created.

Create Application

This command lets you create a new Application. This will create a file "./app.js" file and then a default "home" View.
Optionally you can pass a parameter that will override the default "app.js" name.

$ shark create-application [myApp]
$ shark create-app [myApp]
$ shark ca [myApp]

Create Component

This command lets you create a new Component. The new Component will be placed in the "./components/myExample" folder.

Using the example below the command will create two files:
my-example.html
myExampleComponent.js

$ shark create-component myExample
$ shark cc myExample

Create Manager

This command lets you create a new Manager. The new Manager will be placed in the "./managers" folder.

Using the example below the command will create one files:
customManager.js

$ shark create-manager custom
$ shark cma custom

Create Model

This command lets you create a new Model. The new Model will be placed in the "./models" folder.

Using the example below the command will create one files:
CustomModel.js

$ shark create-model CustomModel
$ shark cmo CustomModel

Create View

This command lets you create a new View. The new View will be placed in the "./views/myExample" folder.

Using the example below the command will create two files:
my-example.html
myExampleView.js

$ shark create-view myExample
$ shark cv myExample

FAQs

Last updated on 10 Mar 2023

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