Renaming application from "NAS" to "Sliproad".

This commit is contained in:
Gabriel Simmer 2020-04-24 09:22:33 +01:00
parent ab6bcad510
commit 396c5914f6
No known key found for this signature in database
GPG key ID: 33BA4D83B160A0A9
4 changed files with 19 additions and 18 deletions

View file

@ -1,5 +1,5 @@
.DEFAULT_GOAL := build .DEFAULT_GOAL := build
NAS_VERSION := 2.0.0 SLIPROAD_VERSION := 2.0.0
# Workaround for CircleCI Docker image and mkdir. # Workaround for CircleCI Docker image and mkdir.
SHELL := /bin/bash SHELL := /bin/bash
@ -7,18 +7,18 @@ make_build_dir:
mkdir -p build/{bin,assets,tars} mkdir -p build/{bin,assets,tars}
build: make_build_dir build: make_build_dir
go build -o build/bin/nas go build -o build/bin/sliproad
pi: make_build_dir 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 small: make_build_dir
go build -o build/bin/nas -ldflags="-s -w" go build -o build/bin/sliproad -ldflags="-s -w"
upx --brute build/bin/nas -9 --no-progress upx --brute build/bin/sliproad -9 --no-progress
small_pi: make_build_dir small_pi: make_build_dir
env GOOS=linux GOARCH=arm GOARM=5 go build -o build/bin/nas-arm -ldflags="-s -w" env GOOS=linux GOARCH=arm GOARM=5 go build -o build/bin/sliproad-arm -ldflags="-s -w"
upx --brute build/bin/nas-arm -9 --no-progress upx --brute build/bin/sliproad-arm -9 --no-progress
run: run:
go run webserver.go go run webserver.go
@ -28,8 +28,8 @@ test:
dist: clean make_build_dir small small_pi dist: clean make_build_dir small small_pi
cp -r assets/* build/assets 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/sliproad-$(SLIPROAD_VERSION)-arm.tar.gz build/assets build/bin/sliproad-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)-x86.tar.gz build/assets build/bin/sliproad README.md LICENSE
clean: clean:
rm -rf build rm -rf build

View file

@ -1,9 +1,9 @@
# nas # sliproad
bringing filesystems together merging filesystems together
## about ## 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 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. i hope allows others to pick it up and improve on it down the line.

View file

@ -5,11 +5,11 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>NAS</title> <title>Sliproad</title>
<link rel="stylesheet" href="/css/styles.css"> <link rel="stylesheet" href="/css/styles.css">
</head> </head>
<body> <body>
<h1><a href="/">NAS</a></h1> <h1><a href="/">Sliproad</a></h1>
<main id="main"> <main id="main">
</main> </main>

View file

@ -2,13 +2,14 @@ package main
import ( import (
"fmt" "fmt"
"io/ioutil"
"log"
"net/http"
"github.com/gmemstr/nas/authentication" "github.com/gmemstr/nas/authentication"
"github.com/gmemstr/nas/files" "github.com/gmemstr/nas/files"
"github.com/gmemstr/nas/router" "github.com/gmemstr/nas/router"
"github.com/go-yaml/yaml" "github.com/go-yaml/yaml"
"io/ioutil"
"log"
"net/http"
) )
// Main function that defines routes // Main function that defines routes
@ -39,6 +40,6 @@ func main() {
} }
r := router.Init() 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)) log.Fatal(http.ListenAndServe(":3000", r))
} }