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: 4 months 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 (12 months ago)
- Last Synced: 2025-01-15T01:49:50.401Z (4 months 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
[](https://www.npmjs.com/package/pugserver)
[](https://www.npmjs.com/package/pugserver)
[](https://github.com/ctrlaltdev/pug-server/releases)
[](https://github.com/ctrlaltdev/pug-server/blob/main/LICENSE)

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
```