All Projects → jaywcjlove → Sgo

jaywcjlove / Sgo

Licence: mit
A dev server for rapid prototyping. Setting a directory to a static server.It provides a 404 neat interface for listing the directory's contents and switching into sub folders.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Sgo

React Router Server
Server Side Rendering library for React Router v4.
Stars: ✭ 443 (+128.35%)
Mutual labels:  server, ssr
React Server
🚀 Blazing fast page load and seamless navigation.
Stars: ✭ 3,932 (+1926.8%)
Mutual labels:  server, ssr
Mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Stars: ✭ 3,448 (+1677.32%)
Mutual labels:  server, mock-server
Psiphon
A multi-functional version of a popular network circumvention tool
Stars: ✭ 169 (-12.89%)
Mutual labels:  server, proxy-server
Proxy
C++ TCP Proxy Server
Stars: ✭ 98 (-49.48%)
Mutual labels:  server, proxy-server
Ream
A super-fast SSR framework for Vue.js 3 ⚡️
Stars: ✭ 497 (+156.19%)
Mutual labels:  server, ssr
vcr.js
Mock server with Proxy and Record support inspired by ruby VCR.
Stars: ✭ 41 (-78.87%)
Mutual labels:  mock-server, proxy-server
Wiremockui
Wiremock UI - Tool for creating mock servers, proxies servers and proxies servers with the option to save the data traffic from an existing API or Site.
Stars: ✭ 38 (-80.41%)
Mutual labels:  proxy-server, mock-server
Freeproxy
免费、高速的 V2Ray 代理和订阅。
Stars: ✭ 104 (-46.39%)
Mutual labels:  proxy-server, ssr
Killgrave
Simple way to generate mock servers written in Go
Stars: ✭ 180 (-7.22%)
Mutual labels:  proxy-server, mock-server
Supysonic
Supysonic is a Python implementation of the Subsonic server API.
Stars: ✭ 187 (-3.61%)
Mutual labels:  server
React Lazy Hydration
Lazy Hydration for Server Rendered React Components
Stars: ✭ 187 (-3.61%)
Mutual labels:  ssr
Bashhub Server
Private cloud shell history. Open source server for bashhub https://github.com/rcaloras/bashhub-client
Stars: ✭ 189 (-2.58%)
Mutual labels:  server
Actionhero
Actionhero is a realtime multi-transport nodejs API Server with integrated cluster capabilities and delayed tasks
Stars: ✭ 2,280 (+1075.26%)
Mutual labels:  server
Imposter
Scriptable, multipurpose mock server.
Stars: ✭ 187 (-3.61%)
Mutual labels:  mock-server
Cod4x server
Extended Call of Duty 4 server
Stars: ✭ 190 (-2.06%)
Mutual labels:  server
Thin
A very fast & simple Ruby web server
Stars: ✭ 2,170 (+1018.56%)
Mutual labels:  server
Fq Book
📖《这本书能让你连接互联网》详细阐述代理、隧道、VPN运作过程,并对GFW策略如:地址端口封锁、服务器缓存投毒、数字验证攻击、SSL连接阻断做相关的原理说明
Stars: ✭ 2,393 (+1133.51%)
Mutual labels:  ssr
Ego
Ego is a full-stack web framework written in Go, lightweight and efficient front-end component solutions, based on gin. The front-end is compiled, does not affect the back-end.
Stars: ✭ 185 (-4.64%)
Mutual labels:  server
V2raycloudspider
采集免费、优质的机场订阅连接;科学上网,从娃娃抓起!/SSR/V2RAY/TROJAN/SPIDER
Stars: ✭ 189 (-2.58%)
Mutual labels:  ssr

简体中文

sgo logo

Build & Deploy Issue Forks Stars Releases npm version

A dev server for rapid prototyping. It provides a neat interface for listing the directory's contents and switching into sub folders.

In addition, it's also awesome when it comes to serving static sites. If a directory contains an index.html, serve will automatically render it instead of serving directory contents, and will serve any .html file as a rendered page instead of file's content as plaintext.

Rename: ssr => sgo
sgo: Server Go

⚠️ ssr package has been donated to a certain team in Ali.

Features

🗂 Serve static content like scripts, styles, images from a directory.
🖥 Reroute all non-file requests like / or /admin to a single file.
♻️ Reload the browser when project files get added, removed or modified.
📚 Readable source code that encourages learning and contribution.
💥 Remove the redundancy proxy feature, Please use mocker-api.
⚛️ Preview the static page of the React/Vue/Angular project.


Quick Start

Add sgo as a dev dependency using npm i sgo -D or run directly from the terminal:

npm install -g sgo # install sgo
sgo # Create server
# or
npx sgo [--port] [--dir]

Command help

Usage: sgo [options]

Options:
  --version      Show version number                                   [boolean]
  --port, -p     Set the port.                          [number] [default: 1987]
  --reload-port  Set the reload port.                  [number] [default: 19872]
  --reload, -r   browser from reloading when files change.
                                                       [boolean] [default: true]
  --dir, -d      Specified directory.                     [string] [default: ""]
  --browser, -b  Browser from opening when the server starts.
                                                       [boolean] [default: true]
  --fallback     The file served for all non-file requests.
                                                          [string] [default: ""]
  --help         Show help                                             [boolean]

Examples:

  $ sgo                            Start a dev server.
  $ sgo --no-browser               Prevents the browser from opening when the
                                   server starts.
  $ sgo --no-reload                prevents the browser from reloading when
                                   files change.
  $ sgo --fallback dir/index.html  The file served for all non-file requests..
  $ sgo -p 2019                    Designated port.
  $ sgo -d node_modules/dir        Specified directory "node_modules/dir".

Copyright 2019

Example usage with npm scripts in a project's package.json file:

{
  "scripts": {
    "start": "npx sgo -p 2019"
  }
}

Used in Node.js

const sgo = require('sgo');

// Create server
sgo.default({ port: 1987, dir: '' });
import server from 'sgo';

// Create server
server({ port: 1987, dir: '' });

License

MIT © Kenny Wong

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].