ThingsCode (or ticode for short) is the interactive development studio built for ThingsDB.
1. Download the latest version:
2. Extract the contents of the archive using a tool like tar. Here's an example for Linux (amd64):
tar -xzvf ticode-linux-amd64-1.0.1.tar.gz3. Install:
The following command will install ticode in path if supported by the OS.
sudo ./ticode install1. Install the dependencies:
npm install2. Start the webserver:
Start the webserver, the app will be available at http://localhost:6213.
npm run build && go build -o ticode . && ./ticodeFor development, also start the dev server, the dev app will be available at http://localhost:3000.
npm run dev(The DEV site will open the WebSocket connection hardcoded on
ws://localhost:6213so keep the port default when stating./ticode)
npm run build
CGO_ENABLED=0 go build -trimpath -o ticodeOr, if you want to make a release and upload tar.gz files for all architecture:
npm run build
mkdir -p bin/darwin-amd64
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -o bin/darwin-amd64/ticode
tar -zcf bin/ticode-darwin-amd64-1.0.1.tar.gz -C ./bin/darwin-amd64/ ticode
mkdir -p bin/darwin-arm64
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -trimpath -o bin/darwin-arm64/ticode
tar -zcf bin/ticode-darwin-arm64-1.0.1.tar.gz -C ./bin/darwin-arm64/ ticode
mkdir -p bin/linux-amd64
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -o bin/linux-amd64/ticode
tar -zcf bin/ticode-linux-amd64-1.0.1.tar.gz -C ./bin/linux-amd64/ ticode
mkdir -p bin/linux-arm64
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -trimpath -o bin/linux-arm64/ticode
tar -zcf bin/ticode-linux-arm64-1.0.1.tar.gz -C ./bin/linux-arm64/ ticode
mkdir -p bin/windows-amd64
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -o bin/windows-amd64/ticode.exe
tar -zcf bin/ticode-windows-amd64-1.0.1.tar.gz -C ./bin/windows-amd64/ ticode.exe
mkdir -p bin/windows-arm64
GOOS=windows GOARCH=arm64 CGO_ENABLED=0 go build -trimpath -o bin/windows-arm64/ticode.exe
tar -zcf bin/ticode-windows-arm64-1.0.1.tar.gz -C ./bin/windows-arm64/ ticode.exeNPM Packages:
npm updateGO Packages:
go get -u ./...
go mod tidy