0.1.0 • Published 2 years ago

coal-codes v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

coal-codes

This is a framework/group of utilities to create an app easily

Features

Example

const coal = require('coal-codes');
const app = coal('Your Application Name', {autodetect: true});

Options

autodetect

If true, coal will try to autodetect some features like root path, routes, etc. You can customize the features by passing an object to the options parameter.

options = {
    autodetect: true || false,
}
options = {
    autodetect: {
        path: true,
        controllers: false,
        routes: false
    },
}

express

options = {
    express: {
        limit: '25mb',
        bodyParser: {},
        json: {},
        urlencoded: {extended: true}
    }
}

session

options = {
    session: {
        resave: false,
        saveUninitialized: true,
        cookie: {
            maxAge: 30000000 // close to 1 year
        }
    }
}