Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.
M ABD AZIZ ALFIAN edited this page Jan 9, 2020 · 21 revisions

Sorry, this documentation is still on progress to write.


Welcome to the cluster-static-server wiki!

Table Of Contents

Get Started

  1. Clone or Download this repo.
  2. Extract it.
  3. Go to the extracted directory.
  4. Run $ npm install.
  5. Done

How to run the server

  • To start master server $ npm run master.
  • To start node server $ npm run node.

Note :

  • You are able to start master and node server in same machine server with different port. But, actualy Master and Node server should be on different machine server so you will get the best performance.

Back to top

Limitation

This cluster-static-server project was design for flexible to use or to fork. Also I want to keep this project always minimalis, so there is bit limitations in this project :

  • No Database
    This cluster-static-server project is only static server, so there is no any database required.
  • No Authentication
    I did not implement any authentication in this project because I want you to be more flexible to choose any kind of authentication method for your business application. Actualy for simple authentication by header is already implemented in this project. Just improve it or create it by yourself.
  • No Update File
    Naturaly a static server will serve "as it" file to your browser with long cache expiring time. So update file feature could be useless for static server. But you can create your own application to manage your file with this cluster-static-server API.

Back to top

Clone this wiki locally