Skip to content

Commit

Permalink
Added install script
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Jan 8, 2025
1 parent e18f9f3 commit 49ef23d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
16 changes: 1 addition & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: install-tools install-go install-node install-dependencies dev-server dev-tailwind dev-templ dev build-server build-tailwind build-templ build launch deploy clean test
.PHONY: install-tools dev-server dev-tailwind dev-templ dev build-server build-tailwind build-templ build launch deploy clean test


BINARY_NAME = soarca-gui
Expand All @@ -17,20 +17,6 @@ GOFLAGS = -ldflags "$(GOLDFLAGS)"
install-tools:
bash build/dependencies.sh



install-go:
wget https://go.dev/dl/go1.23.4.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.4.linux-amd64.tar.gz

install-node:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
. ~/.bashrc
nvm install 18

install-dependencies:
go install github.com/a-h/templ/cmd/[email protected]
npm install

#-----------------------------------------------------
# DEV
Expand Down
9 changes: 9 additions & 0 deletions build/build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Building the SOARCA-GUI


Install dependencies (Linux):

```
make install-tools
```

17 changes: 11 additions & 6 deletions build/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@ wget https://go.dev/dl/go1.23.4.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.4.linux-amd64.tar.gz

# Export paths to ~/.bashrc
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOROOT/bin' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc
# echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
# echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
# echo 'export PATH=$PATH:$GOROOT/bin' >> ~/.bashrc
# echo 'export GOPATH=$HOME/go' >> ~/.bashrc
# echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc

export PATH=$PATH:/usr/local/go/bin
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

# Install nvm
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
source ~/.bashrc
nvm install 18

# Install dependencies for project
Expand Down

0 comments on commit 49ef23d

Please sign in to comment.