Skip to content

Command Line Interface Static Files Server written in TypeScript for Single Page Applications serving in Node with Express

Notifications You must be signed in to change notification settings

chef-js/express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chef-express

kisscc0

npm package version tests status

static files server designed for node written in typescript, with tests

  • express for routing

Command-Line Running

$ npx chef-express folder [--debug] [--ssl] [--port 443] [--maxCacheSize 0]

Installation

$ yarn add chef-express

Minimal configuration is specifying folder, then it serves it from http://localhost:4200

const startServer = require("chef-express");
const config = { folder: "docs" };

startServer(config).then((server: Express.Application) => {
  // server router api is get, post, any
  server.any("/*", (req: Express.Request, res: Express.Response) => {
    res.end("200 OK");
  });
});

License

MIT

About

Command Line Interface Static Files Server written in TypeScript for Single Page Applications serving in Node with Express

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published