diff --git a/.gitignore b/.gitignore index f646759..8a3fb6d 100755 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ .build/ build/ **/build/ +/bin # If you're building an application, you may want to check-in your pubspec.lock diff --git a/README.md b/README.md index 5d931a9..6da10d7 100755 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ [TOML]: https://toml.io/en/ [VSCode]: https://code.visualstudio.com/docs [YAML]: https://yaml.org/ +[WAI-ARIA]: https://www.w3.org/WAI/ARIA/apg/patterns/ [Zig Language]: https://ziglang.org/ @@ -44,6 +45,7 @@ Data Interchange is a Network Application Programming Interface Development Plat - [IntelliJ IDEA][IDEA] - [Mozilla Developer Network Web Documentation][MDN] - [Visual Studio Code][VSCode] +- [Web Accessibility Initiative][WAI-ARIA] - [Zig][Zig Language] ```shell @@ -91,7 +93,7 @@ webdev serve ```shell git clone -go build +GOOS=linux GOARCH=amd64 go build -o ./bin/server ./server/source/main.go ``` ## Install Web Server diff --git a/lib/index.html b/lib/index.html index e06beff..82635b4 100755 --- a/lib/index.html +++ b/lib/index.html @@ -11,7 +11,9 @@
- +
diff --git a/server/.gitignore b/server/.gitignore index 00c3e68..e9a7087 100755 --- a/server/.gitignore +++ b/server/.gitignore @@ -2,6 +2,7 @@ .build/ build/ **/build/ +/bin # If you prefer the allow list template instead of the deny list, see community template: # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore diff --git a/server/source/main.go b/server/source/main.go index b63b3d5..2d61785 100755 --- a/server/source/main.go +++ b/server/source/main.go @@ -1,7 +1,13 @@ package main -import "fmt" +import ( + "fmt" + "net/http" +) func main() { - fmt.Println("Data Interchange Server") + const port string = ":8080" + var fileServer http.Handler = http.FileServer(http.Dir("./lib")) + fmt.Println("Serving on Port: 8080") + http.ListenAndServe(port, fileServer) }