feli
v1.0.4
Published
library for making quickly your mini-server for your front-end only web-app
Downloads
56
Maintainers
Readme
feli
Presentation
feli is a javascript library for building a static web-server for installing and running locally your front-end web-app.
Links
Requirements
Installation
npm i -D feliUsage
Here the typical code for creating a mini-server:
import { feli_cli } from '../dist/index.js';
import process from 'node:process';
import path from 'node:path';
const scrDir = import.meta.dirname;
const defaultPublicDir = path.join(scrDir, 'public');
try {
await feli_cli(defaultPublicDir, process.argv);
} catch (err) {
console.error(`CATCH ERROR: ${err}`);
}Usage of the created mini-server
If you publish your mini-server, you can use it as following
npm i myMiniServer
npx myMiniServer
npx myMiniServer --helpDevelopment
git clone https://github.com/charlyoleg2/feli_mono
cd feli_mono
npm install
npm -w feli run ci
npm -w feli run test-feli