Skip to content

Commit

Permalink
Restruture Project
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdhilahiRWabwire committed Jan 14, 2025
1 parent ab4bed7 commit f8500ea
Show file tree
Hide file tree
Showing 73 changed files with 50 additions and 37 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@ jobs:

- name: Environment Information
run: go env


- name: List Packages or Modules
run: go list

- name: Report Mistakes in Package
run: go vet ./server/source/main.go
run: go vet

- name: Update Package to New APIs
run: go fix

- name: Format Package
run: go fmt

- name: Compile Package and Dependencies
run: GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./server/source/main.go
run: GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./source/main.go
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,29 @@
.build/
build/
**/build/

# 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
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work
go.work.sum

# env file
.env
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Data Interchange is a Network Application Programming Interface Development Plat
```shell
git clone

GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./server/source/main.go
GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./source/main.go
```

## Install Web Server
Expand Down
8 changes: 6 additions & 2 deletions data-interchange.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ RUN echo 'export PATH="$PATH:/usr/bin/go/bin"' >> ~/.bashrc && echo 'export PATH
RUN wget https://go.dev/dl/go1.23.4.linux-amd64.tar.gz && tar --extract --file ./*.gz --verbose
RUN mv ./go1.23.4.linux-amd64/go /usr/bin
RUN go env
RUN go vet ./server/source/main.go
RUN GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./server/source/main.go
RUN go list
RUN go vet
RUN go fix
RUN go fmt
RUN go vet
RUN GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./source/main.go
File renamed without changes.
31 changes: 0 additions & 31 deletions server/.gitignore

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Build Directories
/binary
.build/
build/
**/build/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f8500ea

Please sign in to comment.