scottcorgan / Pushstate Server
Static file server that works with HTML5 Pushstate.
Stars: ✭ 414
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Pushstate Server
Skygear Server
Skygear - an open source serverless platform for modern secure app development
Stars: ✭ 380 (-8.21%)
Mutual labels: server
Desktopify
Convert Ubuntu Server for Raspberry Pi into a Desktop
Stars: ✭ 400 (-3.38%)
Mutual labels: server
Vespa
The open big data serving engine. https://vespa.ai
Stars: ✭ 3,747 (+805.07%)
Mutual labels: server
Encrypted Dns Server
An easy to install, high-performance, zero maintenance proxy to run an encrypted DNS server.
Stars: ✭ 398 (-3.86%)
Mutual labels: server
Cuberite
A lightweight, fast and extensible game server for Minecraft
Stars: ✭ 3,984 (+862.32%)
Mutual labels: server
Mumble
Mumble is an open-source, low-latency, high quality voice chat software.
Stars: ✭ 4,418 (+967.15%)
Mutual labels: server
Binserve
A blazingly fast static web server with routing, templating, and security in a single binary you can set up with zero code. ⚡️🦀
Stars: ✭ 401 (-3.14%)
Mutual labels: server
Walkable
A Clojure(script) SQL library for building APIs: Datomic® (GraphQL-ish) pull syntax, data driven configuration, dynamic filtering with relations in mind
Stars: ✭ 384 (-7.25%)
Mutual labels: server
React Server
🚀 Blazing fast page load and seamless navigation.
Stars: ✭ 3,932 (+849.76%)
Mutual labels: server
Yatopia
The Most Powerful and Feature Rich Minecraft Server Software!
Stars: ✭ 408 (-1.45%)
Mutual labels: server
Graphql Ws
Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
Stars: ✭ 398 (-3.86%)
Mutual labels: server
pushstate-server
Static file server that works with HTML5 Pushstate.
For example, the route /some/pushstate/route
will return the index.html
file. But, /some/static/path/logo.png
will return the logo.png
static file.
Install
npm install pushstate-server --save
Usage
var server = require('pushstate-server');
server.start({
port: 3000,
directory: './public'
});
or for multiple directories
var server = require('pushstate-server');
server.start({
port: 4200,
directories: ['./public', './bower_components']
});
or bind to a particular host
server.start({
port: 4200,
host: '192.99.100.01',
directories: ['./public', './bower_components']
});
Global Install
npm install -g pushstate-server
usage: pushstate-server [-d directory] [-p port] [-f file]
API
start(options[, callback])
- start the pushstate static file server
options
-
port
- set the port that the server should open
- uses
process.env.PORT
if not specified, and defaults to port9000
if none is available
-
directory
- the path to the directory where the static assets will be served
- defaults to
public
-
file
- Custom file to serve
- defaults to
index.html
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].