Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lassejlv/servemon
⚡ Blazing fast & lightweight web cli server for Node.js
https://github.com/lassejlv/servemon
cli fast nodejs server web
Last synced: 3 days ago
JSON representation
⚡ Blazing fast & lightweight web cli server for Node.js
- Host: GitHub
- URL: https://github.com/lassejlv/servemon
- Owner: lassejlv
- Created: 2022-07-23T19:45:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-12T09:24:13.000Z (8 months ago)
- Last Synced: 2024-06-13T08:41:20.151Z (5 months ago)
- Topics: cli, fast, nodejs, server, web
- Language: HTML
- Homepage:
- Size: 821 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Servemon
⚡ Blazing fast & lightweight web cli server for Node.js. That always starts and reloads under 10-8ms 😎
# Getting Started
### Step 1
Install servemon
```bash
bun add -g servemon
pnpm add -g servemon
yarn add -g servemon
npm install -g servemon
```### Step 2
Start the serve process
```bash
servemon
```And then you are good to go. Your server starts under 8-10ms. 🥳
# Configuration
The config file its used to configure the servemon server. Everything happens in `servemon.json`
Example config file.
```json
{
"dir": "./test",
"port": 4000,
"logger": false,
"watch": true
}
```## Config Values
| Name | Type | Description |
| :------- | :-------- | :--------------------------------------------------------------------------------------------------------- |
| `dir` | `string` | **Optional**. The directory you have your files |
| `port` | `number` | **Optional**. The port you want to serve on |
| `logger` | `boolean` | **Optional**. Enable or disable the logger |
| `watch` | `boolean` | **Optional**. Enable or disable the watcher, uses web-sockets to live reload |
| `timer` | `boolean` | **Optional**. Enable or disable the timer that logs how many ms the server took to start and reload pages |