Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctrlaltdev/pug-server
🐶 A simple pug server
https://github.com/ctrlaltdev/pug-server
dev development html jade javascript mockup nodejs npm prototype pug server
Last synced: 18 days ago
JSON representation
🐶 A simple pug server
- Host: GitHub
- URL: https://github.com/ctrlaltdev/pug-server
- Owner: ctrlaltdev
- License: mpl-2.0
- Fork: true (ded/jade-server)
- Created: 2016-11-01T18:03:22.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T11:14:54.000Z (8 months ago)
- Last Synced: 2025-01-15T01:49:50.401Z (23 days ago)
- Topics: dev, development, html, jade, javascript, mockup, nodejs, npm, prototype, pug, server
- Language: JavaScript
- Homepage: https://ctrlalt.dev/pugserver
- Size: 683 KB
- Stars: 21
- Watchers: 3
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
[![npm](https://img.shields.io/npm/v/pugserver.svg?style=for-the-badge)](https://www.npmjs.com/package/pugserver)
[![NPM Downloads](https://img.shields.io/npm/dt/pugserver.svg?style=for-the-badge)](https://www.npmjs.com/package/pugserver)
[![GitHub release](https://img.shields.io/github/release/ctrlaltdev/pug-server.svg?style=for-the-badge)](https://github.com/ctrlaltdev/pug-server/releases)
[![licence](https://img.shields.io/npm/l/pugserver.svg?style=for-the-badge)](https://github.com/ctrlaltdev/pug-server/blob/main/LICENSE)
![JavaScript](https://img.shields.io/badge/_-JS-F0DB4F.svg?style=for-the-badge)
![Pug](https://img.shields.io/badge/_-Pug-A86454.svg?style=for-the-badge)Basic [pug](https://pugjs.org) file server. Ideal for building local prototypes apart from any application. All other files are served statically as they usually would.
### Installation
``` sh
npm install -g pugserver
```#### Create a folder
```
+ myfolder/
- index.pug
- example.css
- example.js
```### Usage
``` sh
pugserver path/to/myfolder
```Open your browser to [http://localhost:8080/](http://localhost:8080/)
The path argument is optional. If not present it will default to current directory.
You can choose to run your server on another port than 8080. To do so, use the -p flag followed by the port number:``` sh
pugserver -p 1337
```