3.1.0 • Published 3 years ago
shvidko v3.1.0
Lightweight and fast http server with built-in sessions, file storage and more
const shvidko = require("shvidko");
const app = shvidko.createServer().listen(3001);
app.use(shvidko.middleware.sender()); // to use res.send (send data to the client)
// url : http://localhost:3001/
app.get("/", (req, res) => {
res.send("Hello world!");
});
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js.
If this is a brand new project, make sure to create a package.json
first with
the npm init
command.
Installation is done using the
npm install
command:
$ npm install shvidko
Fast start
$ npx shvidko
OR
$ node ./node_modules/shvidko/bin/shvidko -path "./"
Features
- Robust routing
- Focus on high performance
- Content negotiation
- Executable for generating applications quickly
- Built-in session support
- Built-in file storage support
- Encapsulation requests
- Support for middleware
- Examples for different cases
Examples
To view the examples, clone the Shvidko repo and install the dependencies:
$ git clone https://github.com/BohdanShmalko/shvidko.git
$ cd shvidko
$ npm install
$ cd examples
Then run the one of examples
$ node simple
$ node complex
$ node cors
$ node database
$ node fileStorage
$ node parsers
$ node requestsFromAnotherFile
$ node secure
$ node sessions
$ node subrouters
License
3.1.0
3 years ago
3.0.3
3 years ago
3.0.2
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.2.0
3 years ago
2.1.2
3 years ago
2.1.1
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.4.0
3 years ago
1.3.4
3 years ago
1.3.3
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago