Giter Club home page Giter Club logo

nd-server

Hutia's quick node server.

Based on Connect / Express / Socket.IO (under development) / sqlite3

Has its' own page render engine: HUT.

Feathers:

  1. Easy to config.

  2. Extensible.

Usage

// import module
var hutia = require('hutia');

// create application
// note it's inherited from express and it has all behaviors as express()
// except app.engine is overrided
var app = hutia();

// set logger option
// if this option is not set, the logger will not take effect
app.set('logger', 'dev');

// set session options
// if this option is not set, the session will not take effect
app.set('session', { secret: 'hutia-secret', cookie: { maxAge: 60 * 60 * 1000 }});

// set database path
// this database is inherited from node-sqlite3
app.set('dbpath', './hutia/test/db/mydb.db');

// set the root path of web site
app.root = './hutia/test/www';

// set listen port
// default as 80
app.port = 80;

// start server
app.start(function(){
	console.log('server is running...');
});

HUT engine

An EJS-liked server-based engine.

Use it to render page on server side.

Feathers:

  1. include

     include('header.hut', [optionObjects]);
    
  2. MODU

     MODU SOME_MODULES.hut
    

This is only a draft document, to be continued...

hutia's Projects

hutia icon hutia

hutia's node server with its own engine HUT

nd-server icon nd-server

Hutia's node server based on express and socket.io

pdms icon pdms

personal document management system

pis icon pis

personal information system

pwd-mgr icon pwd-mgr

Personal information and password management

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.