2.0.5 • Published 7 years ago
fundamentum v2.0.5
The 'fundamentum' module
const f = require('fundamentum');
There is a working example: https://bitbucket.org/pavlo67/exemplum.
let f = require('fundamentum');
let frontPath = 'front/';
let frontPathHttp = '/js/';
let frontFile = 'bundle.js';
let configFile = 'ctx.json5';
let serverParts = [
configFile,
'server',
'page',
'module1',
'module2',
]
f.linkAll('', serverParts, '', serverIndex => {
f._in(['startServer'], _in => {
f.createFront(
serverIndex,
configFile,
'front.tmp',
frontPath,
frontPathHttp,
frontFile,
_in.startServer
);
});
});
Documentation
Better to read there: https://bitbucket.org/pavlo67/fundamentum.
Next links does not work if this page is viewed on NPM, it work only if the page is viewed on bitbucket.org or locally.
- Dependency Injection:
українською
in english.
- Project components linking based on special format of config files: українською.
in english.
- Config files format for backend management, endpoints:
українською.
- Front-end generation and linking using the same config files format:
українською.
- Some trivial functions (but these functions are used quite frequently in other scripts of the package):
українською;
in english.