Socket
Book a DemoInstallSign in
Socket

@kldit/mvc

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kldit/mvc

A small MVC Framework powered by koa

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
2
Created
Source

kldit::mvc

Install

npm i --save @kldit/mvc

Getting started

Create a .env with the params:

# Name in case of https: https://HOSTNAMES/PATH_NAMES
# Leave empty if you're not going to use.
# it will run only in 443 port
HOSTNAMES=
PATH_NAMES=

# Name in case of http: http://HOSTNAME/PATH_NAME
# You have to specify a port
HOSTNAME=localhost
PATH_NAME=
PORT=3000

# Environment (development|production)
ENV=development
# Make sure the path exists
LOG_PATH=log
ENCODE=utf8

# If you want to use cluster (multiple instances of your application)
CLUSTER=false

You can start your first app using the code below (app.js):

const mvc = require('@kldit/mvc');

class MainApplication extends mvc.Application
{

}

mvc.server.setApplication( new MainApplication() );

Run it

$ node app.js
> Setup  9.95 MB

Test it

$ curl localhost:3000
> Kldit::MVC

Continue: Your first service

Keywords

mvc

FAQs

Package last updated on 29 Nov 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.