# @nelwhix/goserve

> Golang CLI for starting blazing fast server for your local sites

Latest version **1.1.10** (published 2024-03-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nelwhix/goserve
pnpm add @nelwhix/goserve
yarn add @nelwhix/goserve
bun add @nelwhix/goserve
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.10 |
| Published | 2024-03-27 |
| First published | 2023-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 2 |
| Author | Nelson Isioma |
| Maintainers | nelwhix |
| Keywords | cli, dev-server, go |

## Links

- npm: https://www.npmjs.com/package/@nelwhix/goserve
- Repository: https://github.com/Nelwhix/goserve
- Homepage: https://github.com/nelwhix/goserve#readme
- Issues: https://github.com/Nelwhix/goserve/issues
- npm.io page: https://npm.io/package/@nelwhix/goserve

## Dependencies (1)

- [golang-npm](https://npm.io/package/golang-npm.md) ^0.0.6

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [@temporal-architect/claude-plugin](https://npm.io/package/@temporal-architect/claude-plugin.md) — 335 weekly downloads

## Recent versions

- 1.1.10 (latest) — 2024-03-27
- 1.1.9 — 2024-03-25
- 1.1.8 — 2024-03-25
- 1.1.7 — 2024-03-25
- 1.1.5 — 2024-03-25
- 1.1.4 — 2023-06-10
- 1.1.3 — 2023-06-09
- 1.1.2 — 2023-06-09

## README

# GoServe
CLI for starting blazing fast server for your local sites. Also perfect for designing Html, css
templates

## Installation
You can install goserve globally from npm
```bash
    npm i -g @nelwhix/goserve
```

To confirm it is downloaded, run
```bash
goserve -h
```

## Usage
For now, Serve supports just HTML, CSS and Javascript
```bash
    goserve # this starts a server on port 3000

    # To use a custom port run
    goserve -p 5173

    # To serve another folder
    goserve -root "/Desktop/my-cool-site/dist"

    # goserve -root "/Desktop/my-cool-site/dist/index.html" won't work because the root flag needs a directory to serve not a file
```

For local development, you will need to add this script tag to your html head

```html
    <script src="https://nelwhix-serve.s3.eu-central-1.amazonaws.com/serve.js"></script>
```
this downloads a script that listens for filechange events
from the server

### Troubleshooting
On Windows, if after install the goserve command is not available. Confirm that the nodejs bin directory is in your system's environment variables PATH

---
_Source: https://npm.io/package/@nelwhix/goserve · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
