All Projects → scottcorgan → Pushstate Server

scottcorgan / Pushstate Server

Static file server that works with HTML5 Pushstate.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Pushstate Server

Anki Sync Server
Self-hosted Anki sync server
Stars: ✭ 352 (-14.98%)
Mutual labels:  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
Ngrest
Fast and easy C++ RESTful WebServices framework
Stars: ✭ 357 (-13.77%)
Mutual labels:  server
Einx
a framework in golang for game server or app server
Stars: ✭ 376 (-9.18%)
Mutual labels:  server
Gossa
🎶 a fast and simple multimedia fileserver
Stars: ✭ 390 (-5.8%)
Mutual labels:  server
Vespa
The open big data serving engine. https://vespa.ai
Stars: ✭ 3,747 (+805.07%)
Mutual labels:  server
Livego
go Implementation of live streaming services
Stars: ✭ 411 (-0.72%)
Mutual labels:  server
Servuo
An Ultima Online server emulator written in C# .NET
Stars: ✭ 378 (-8.7%)
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
Go Syslog
Syslog server library for go.
Stars: ✭ 361 (-12.8%)
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
Aero
🚄 High-performance web server for Go.
Stars: ✭ 354 (-14.49%)
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
Mirakurun
A Modern DTV Tuner Server Service for ISDB.
Stars: ✭ 352 (-14.98%)
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 port 9000 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].