diff --git a/Makefile b/Makefile index 0b222a0..b303d52 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .DEFAULT_GOAL := build -NAS_VERSION := 2.0.0 +SLIPROAD_VERSION := 2.0.0 # Workaround for CircleCI Docker image and mkdir. SHELL := /bin/bash @@ -7,18 +7,18 @@ make_build_dir: mkdir -p build/{bin,assets,tars} build: make_build_dir - go build -o build/bin/nas + go build -o build/bin/sliproad pi: make_build_dir - env GOOS=linux GOARCH=arm GOARM=5 go build -o build/bin/nas-arm + env GOOS=linux GOARCH=arm GOARM=5 go build -o build/bin/sliproad-arm small: make_build_dir - go build -o build/bin/nas -ldflags="-s -w" - upx --brute build/bin/nas -9 --no-progress + go build -o build/bin/sliproad -ldflags="-s -w" + upx --brute build/bin/sliproad -9 --no-progress small_pi: make_build_dir - env GOOS=linux GOARCH=arm GOARM=5 go build -o build/bin/nas-arm -ldflags="-s -w" - upx --brute build/bin/nas-arm -9 --no-progress + env GOOS=linux GOARCH=arm GOARM=5 go build -o build/bin/sliproad-arm -ldflags="-s -w" + upx --brute build/bin/sliproad-arm -9 --no-progress run: go run webserver.go @@ -28,8 +28,8 @@ test: dist: clean make_build_dir small small_pi cp -r assets/* build/assets - tar -czf build/tars/nas-$(NAS_VERSION)-arm.tar.gz build/assets build/bin/nas-arm README.md LICENSE - tar -czf build/tars/nas-$(NAS_VERSION)-x86.tar.gz build/assets build/bin/nas README.md LICENSE + tar -czf build/tars/sliproad-$(SLIPROAD_VERSION)-arm.tar.gz build/assets build/bin/sliproad-arm README.md LICENSE + tar -czf build/tars/sliproad-$(SLIPROAD_VERSION)-x86.tar.gz build/assets build/bin/sliproad README.md LICENSE clean: rm -rf build diff --git a/README.md b/README.md index a1f7c81..b306d82 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# nas -bringing filesystems together +# sliproad +merging filesystems together ## about -this project aims to be an easy-to-manage web application that allows the management of cloud storage, whether it be on +this project aims to be an easy-to-user web API that allows the management of cloud storage, whether it be on the host machine or part of a remote api. this is intended mostly for my own use, but i am documenting it in a way that i hope allows others to pick it up and improve on it down the line. diff --git a/assets/web/index.html b/assets/web/index.html index 9c8b85f..17e12e7 100644 --- a/assets/web/index.html +++ b/assets/web/index.html @@ -5,11 +5,11 @@ - NAS + Sliproad -

NAS

+

Sliproad

diff --git a/webserver.go b/webserver.go index c465fdc..978bee6 100644 --- a/webserver.go +++ b/webserver.go @@ -2,13 +2,14 @@ package main import ( "fmt" + "io/ioutil" + "log" + "net/http" + "github.com/gmemstr/nas/authentication" "github.com/gmemstr/nas/files" "github.com/gmemstr/nas/router" "github.com/go-yaml/yaml" - "io/ioutil" - "log" - "net/http" ) // Main function that defines routes @@ -39,6 +40,6 @@ func main() { } r := router.Init() - fmt.Println("Your NAS instance is live on port :3000") + fmt.Println("Your sliproad instance is live on port :3000") log.Fatal(http.ListenAndServe(":3000", r)) }