Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adrianmg/static-playground

A boilerplate including hot-reload and HTML templates to prototype static websites with a minimal footprint.
https://github.com/adrianmg/static-playground

css gulp html javascript nunjucks playground prototype static templates web

Last synced: 2 months ago
JSON representation

A boilerplate including hot-reload and HTML templates to prototype static websites with a minimal footprint.

Awesome Lists containing this project

README

        

# Static Playground

Preview of the playground

A boilerplate including **hot-reload** and **HTML templating** to prototype **static websites** with a minimal footprint. It comes with:

- [Nunjucks](https://mozilla.github.io/nunjucks/) HTML template engine with pages and templates
- [Sass](https://sass-lang.com/) for styling: code in separate files, generate a single CSS file
- An automatic process to compile your site to static HTML
- A webserver with hot-reload
- An external server: test your site on mobile and other devices
- Real-time synchronization between connected devices
- Remote web inspector tools to debug from the different connected devices
- Support for HTML, CSS, JS and other static files

## Installation and Usage

To start using it simply clone this repository and run the following commands on your terminal:

```
npm install
npm start
```

This will generate a `dist` folder with the compiled files so that you can deploy your project to any provider quickly.

It will automatically start a local server at `http://localhost:3000`. You can customize what files are watched and other options in `res/bs-config.js`.

If you visit `http://localhost:3001`, you will see a dashboard to customize other options from [Browsersync](https://browsersync.io).

There's also an external server at `http://:3001` that you can use to test your website directly from other devices sharing the same network. This is great to quickly test things on your phone with hot-reload as well as syncronized scrolling.

## Beyond the basics

Although it's not part of this boilerplate, you can grow the functionality by adding [Parcel] to bundle your JS modules.

## License

The tool is available as open-source under the terms of the [MIT License](http://opensource.org/licenses/MIT).