@phanostech/masho
v0.1.3
Published
Simple NodeJS framework using ES6 classes
Downloads
23
Maintainers
Readme
Mezgeb JS Framework
Simple NodeJS framework using ES6 classes
This is a NodeJS package and is inteneded to be installed with a node install command
Overview
This module provides all the things you need to get a website up and running with node. The advantage of this framework is that it is simpler than Vue or React. This framework doesn't depend on another frameworks. It gives you a simple tool for getting a website up and running. In addition, it allows you to debug the server side code using webstorm IDE. You don't have to compile static code and use the browser to debug this. You can debug the code inside the IDE then a compile a static version when your're done testing.
How to Install
node install @phanostech/masho
Setting up your project
To get started, you can copy the example code to your project. The example project gives you a demo page to get you started.
To install the demo code
npm run hiwi-init
Creating a SSL certificate
This framework uses HTTP2 with ES6 inside NodeJS. HTTP2 requires SSL certificate in order to run. You have to generate a SSL certificate (*-cert.pem, *-privkey.pem).
To generate SSL Cert
npm run hiwi-create-cert
This will generate SSL cert using OpenSSL into the hiwi-config/cert directory You can manually create an SSL cert and place it in hiwi-config/cert dir.
openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=mysite.org' \
-keyout hiwi-config/cert/privkey.pem -out hiwi-config/cert/cert.pem
Config file
The main config file for this module is located in hiwi-config/config.json. The JSON file contains all the parameters needed to customize the HiwiToldYouSo package.
User's Guide
The guide for using the NodeJS Frame User's Guide
Running the Server
You can run the masho*. scripts to start using Masho in your project TODO
npm pack @phanostech/mashojs