Giter Site home page Giter Site logo

website-boilerplate's Introduction

website-boilerplate

A simple boilerplate for creating a website, with a live reloading development environment. Uses live-server for the development webserver.

Running the server

Assuming you have Node.js already installed:

  1. Clone this repository: git clone https://github.com/LWTechGaming/website-boilerplate.git (Or download the ZIP package)
  2. Browse to the repository folder, and run npm install.
  3. If you wish, change the settings in config.json. For information about the values, see Configuration.
  4. Run npm start and start editing your files. Whenever you save a file in the public folder, the browser window will be reloaded.

Configuration

Note: Don't use this webserver to display the website online, use a proper webserver like Apache or Nginx for that!

The following values can be changed.

Value Description Type Default
port Port to run the webserver on. Number 8000
host Host URL to run the webserver on. String localhost
docRoot Directory from which to serve the website. String ./public
openBrowser Open a browser window when the webserver launches. Boolean true
notFoundFile File to display when the user attempts to access a resource that doesn't exist on the server*. String
waitBeforeReload Amount of time in milliseconds to wait before reloading the browser window. Number (ms) 500
logLevel The level of logging output to display in the console. 0 = errors only, 1 = only important, 2 = everything. Number 2

website-boilerplate's People

Contributors

linuswillner avatar

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.