Skip to content

Commit

Permalink
Update Server
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdhilahiRWabwire committed Dec 28, 2024
1 parent 95aefc1 commit 905d3fc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.build/
build/
**/build/
/bin

# If you're building an application, you may want to check-in your pubspec.lock

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/

<a href="https://github.com/HyaenaTechnologies/data-interchange-web">
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

<body>
<main>

<textarea class="notes" name="notes" id="notes" rows="7">
Data Interchange
</textarea>
</main>
</body>
</html>
1 change: 1 addition & 0 deletions server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions server/source/main.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 905d3fc

Please sign in to comment.