https://github.com/codincat/goserver
Minimum web server for web development purpose
https://github.com/codincat/goserver
Last synced: 10 months ago
JSON representation
Minimum web server for web development purpose
- Host: GitHub
- URL: https://github.com/codincat/goserver
- Owner: CodinCat
- Created: 2016-05-30T12:55:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-21T17:07:45.000Z (almost 10 years ago)
- Last Synced: 2025-02-24T01:16:43.563Z (about 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# goserver
A minimum web server that serves your static files.
```
go get github.com/CodinCat/goserver
```
If you don't have [Go](https://golang.org/) installed and using Windows, here is the pre-built binary (only windows 64bit for now):
https://github.com/CodinCat/goserver/releases/latest
Download it and put it in your `PATH`, rename it to anything you like.
Restart your terminal, then you can start to use the web server:
```
cd my/web/project
goserver
```
It will listen on 8080 port by default. Or you can specify a port:
```
goserver --port :7777
```
(don't forget the colon `:`)
The binary is portable, so you can even put it in your USB drive and use it anywhere.
And I recommend [LivePage](https://chrome.google.com/webstore/detail/livepage/pilnojpmdoofaelbinaeodfpjheijkbh) extension for live reloading, it's super lightweight and easy to use.
That's all!