Git Product home page Git Product logo

simple-nodejs-server's Introduction

Simple NodeJS Server

A NodeJS server very simple to serve statics. Customized port, path and HTML5 Push State.

How to start

The default arguments are set for a fast start but you can customize them to make the script powerfull. You don't need clone the project within each project.

  1. Clone the project in your workspace's root path with git clone https://github.com/jorgecasar/simple-NodeJS-server.git
  2. Go to "simple-NodeJs-server'
  3. Install dependencies: npm install -d
  4. Go to your project, p.e '[workspace-root]/myProject/'
  5. Start the Node server: node ../simple-node-server/server
  6. Enjoy your new server at http://localhost:8888

Arguments

  1. Port: by default is the port 8888, you can customize the port to set up several server.
  2. Path: is the path of your project, by dafault is '.', you can specify any directory of your computer.
  3. disablePushState: by default it's enabled, then you won't get a 404 when a file doesn't exist. It will return the index.html of your root.

simple-nodejs-server's People

Contributors

jorgecasar avatar

Stargazers

 avatar  avatar Román Rodríguez avatar  avatar Sergio Peña avatar Cristian Martínez avatar Alberto Linares avatar

Watchers

 avatar James Cloos avatar  avatar  avatar Román Rodríguez avatar  avatar

Forkers

mariajcg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.