https://github.com/noelukwa/localbase
localbase is a lightweight tool for provisioning secure .local domains. It simplifies the process of setting up local development environments with HTTPS support.
https://github.com/noelukwa/localbase
golang localhost tunnel
Last synced: 10 months ago
JSON representation
localbase is a lightweight tool for provisioning secure .local domains. It simplifies the process of setting up local development environments with HTTPS support.
- Host: GitHub
- URL: https://github.com/noelukwa/localbase
- Owner: noelukwa
- License: mit
- Created: 2024-06-25T08:18:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-14T14:19:26.000Z (over 1 year ago)
- Last Synced: 2025-03-29T09:22:34.893Z (11 months ago)
- Topics: golang, localhost, tunnel
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 22
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# localbase
localbase is a lightweight tool for provisioning secure .local domains. It simplifies the process of setting up local development environments with HTTPS support.
## requirements
- [caddy](https://caddyserver.com/)
- [go](https://golang.org/)
## installation
```go
go install github.com/noelukwa/localbase@latest
```
```sh
curl -sSL https://raw.githubusercontent.com/noelukwa/localbase/main/install.sh | sudo sh
```
## usage
✨ _ensure caddy is setup and running_
start the localbase service in foreground:
```sh
localbase start
```
start the localbase service in detached mode:
```sh
localbase start -d
```
add a new domain:
```sh
localbase add hello --port 3000
```
✨ now visit [https://hello.local](https://hello.local)
remove a domain:
```sh
localbase remove hello
```
list all configured domains:
```sh
localbase list
```
stop the localbase service:
```sh
localbase stop
```