@kldit/mvc

1.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @kldit/mvc

Weekly Downloads

2

Version

1.1.2

License

GPL-2.0

Unpacked Size

1.81 MB

Total Files

75

Last publish

Collaborators

  • orlleite