Skip to content

Commit

Permalink
Remove Dart
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdhilahiRWabwire committed Dec 30, 2024
1 parent 869e007 commit 8488853
Show file tree
Hide file tree
Showing 68 changed files with 45 additions and 932 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/dart.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Go

on:
push:
branches: [ "main" ]

pull_request:
branches: [ "main" ]

schedule:
- cron: "30 03 * * 1-5"

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout Repository
uses: actions/[email protected]

- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.20'

- name: Build Package
run: GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./server/source/main.go
28 changes: 1 addition & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
# See https://www.dartlang.org/guides/libraries/private-files

# Files and directories created by pub
# Build Directories
/binary
.dart_tool/
.packages
.build/
build/
**/build/

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


# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/

# dotenv environment variables file
.env*

# Avoid committing generated Javascript files:
*.dart.js
*.info.json # Produced by the --dump-info flag.
*.js # When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js_
*.js.deps
*.js.map

.flutter-plugins
.flutter-plugins-dependencies
41 changes: 6 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[CommonMark]:https://commonmark.org/
[Dart]: https://dart.dev/
[Go Language]
[Go Language]: https://go.dev
[HTTP]: https://developer.mozilla.org/en-US/docs/Web/HTTP
[IDEA]: https://jetbrains.com/idea/
[JavaScript Language]: https://developer.mozilla.org/en-US/docs/Web/JavaScript
[JSON]: https://www.json.org/json-en.html
[MDN]: https://developer.mozilla.org/en-US/docs/Web/API
[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/
[Webstorm]: https://jetbrains.com/webstorm

<a href="https://github.com/HyaenaTechnologies/data-interchange-web">
<h1>
Expand Down Expand Up @@ -41,49 +42,19 @@ Data Interchange is a Network Application Programming Interface Development Plat

## Build

- [Dart Language][Dart]
- [Go][Go Language]
- [IntelliJ IDEA][IDEA]
- [JetBrains Webstorm][Webstorm]
- [JavaScript][JavaScript Language]
- [Mozilla Developer Network Web Documentation][MDN]
- [Visual Studio Code][VSCode]
- [Web Accessibility Initiative][WAI-ARIA]

```shell
git clone

dart pub upgrade

dart run build_runner build

dart run build_runner serve

dart run build_runner test

dart run build_runner watch
```

OR

```shell
git clone

dart pub upgrade

dart pub global activate webdev

echo 'export PATH="$PATH:~/.pub-cache/bin"' >> ~/.bashrc && sudo echo 'export PATH="$PATH:~/.pub-cache/bin"' >> /etc/skel/.bashrc

webdev build

webdev serve
```

## Build Web Server

```shell
git clone

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

## Install Web Server
Expand Down
30 changes: 0 additions & 30 deletions analysis_options.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions build.yaml

This file was deleted.

27 changes: 7 additions & 20 deletions data-interchange.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
FROM amd64/debian:latest
FROM amd64/fedora:latest

WORKDIR /data-interchange

COPY ./ ./

RUN apt update && apt -y full-upgrade
RUN apt -y install apt-transport-https iptables firewalld nftables
RUN wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub \ | gpg --dearmor -o /usr/share/keyrings/dart.gpg
RUN echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' \ | tee /etc/apt/sources.list.d/dart_stable.list
RUN apt update && apt -y install dart
RUN echo 'export PATH="$PATH:~/.pub-cache/bin"' >> ~/.bashrc && sudo echo 'export PATH="$PATH:~/.pub-cache/bin"' >> /etc/skel/.bashrc
RUN dnf -y upgrade
RUN dnf -y install iptables firewalld nftables
RUN echo 'export PATH="$PATH:/usr/bin"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/bin"' >> /etc/skel/.bashrc
RUN echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/local/bin"' >> /etc/skel/.bashrc
RUN echo 'export PATH="$PATH:/usr/include"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/include"' >> /etc/skel/.bashrc
RUN echo 'export PATH="$PATH:/usr/local/include"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/local/include"' >> /etc/skel/.bashrc
RUN echo 'export PATH="$PATH:/usr/local/include"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/local/include"' >> /etc/skel/.bashrc
RUN echo 'export PATH="$PATH:/usr/bin/go/bin"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/bin/go/bin"' >> /etc/skel/.bashrc
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 echo 'export PATH="$PATH:/usr/bin/go/bin"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/bin/go/bin"' >> /etc/skel/.bashrc
RUN add-apt-repository ppa:maveonair/helix-editor && apt update
RUN apt -y install ed sed nano vim neovim helix
RUN dart info
RUN dart pub global activate webdev
RUN dart pub upgrade
RUN dart pub deps
RUN dart pub outdated
RUN dart analyze lib
RUN dart fix lib --dry-run
RUN dart fix lib --apply
RUN dart format lib
RUN dnf -y install ed sed nano vim neovim helix
RUN GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./server/source/main.go
14 changes: 0 additions & 14 deletions data_interchange.iml

This file was deleted.

5 changes: 0 additions & 5 deletions lib/main.dart

This file was deleted.

Loading

0 comments on commit 8488853

Please sign in to comment.