Subatomic Go Web App - Test version
- Go
- Git
- Komodo Daemon (jl777 branch compiled from http://github.com/jl777/komodo.git)
Follow this instruction guide and install Komodo
and subatomic
binaries on your system:
https://gist.github.com/himu007/add3181427bb53ab5dc5160537f0c238
On Ubuntu can follow this guide: https://github.com/golang/go/wiki/Ubuntu
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go
On Mac can install Go using brew
.
brew update
brew install go
In Linux/Mac you must have a go
directory under your $HOME
directory in your OS.
If you don't find this directory then create the following:
mkdir -p $HOME/go/{bin,src,pkg}
go get -u github.com/satindergrewal/subatomicgo
cd $HOME/go/src/github.com/satindergrewal/subatomicgo
You must configure the config.json
file with full path where subatomic
file is located.
For example if you have compiled and installed Komodo
and subatomic
as per the guide link provided earlier, you probably has the komodo compiled in your $HOME/komodo
location.
Make a copy of config.json
file from config.json.sample
file:
cd $HOME/go/src/github.com/satindergrewal/subatomicgo
cp config.json.sample config.json
Open config.json
in text editor and edit value of only subatomic_dir
key.
To get the full path of your komodo
directory cd
to komodo
directory and issue pwd
command to get full path. Example:
cd $HOME/komodo/src
pwd
It will give full path for example like this:
/home/satinder/komodo/src
Replace the path you get from this output in config.json
file.
Before:
"subatomic_dir": "/Users/satinder/repositories/jl777/komodo/src"
After:
"subatomic_dir": "/home/satinder/komodo/src"
To start the app execute following command inside subatomicgo
directory:
cd $HOME/go/src/github.com/satindergrewal/subatomicgo
go run main.go
Now open http://localhost:8080