DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Interactive Development with ClojureScript


Install and Setup

On Remote Ubuntu Server

On ThinkCenter server, start sshuttle service, install sdkman, and run:

bash -c "cd $HOME/.local/bin && curl -fsSLo boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh && chmod 755 boot"
boot -h

Install firefox on the server. SSH to server with MobaXterm (which has a built-in X server), then run firefox localhost:3000, you will have a browser window in your client system.

Or install the xrdp service and OpenBox window manager on the server, and start a remote GUI browser from your laptop, according to dsnote Run GUI Application on Remote Linux Server. Now you can do interactive develop all the same in local environment.

The process are the same on Ubuntu/Mint laptop.

On WSL

sudo apt install zip unzip
curl -s "https://get.sdkman.io" | bash
. .bashrc
http_proxy=http://localhost:1080 https_proxy=http://localhost:1080 sdk i java
bash -c "cd $HOME/.local/bin && curl -fsSLo boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh && chmod 755 boot"
BOOT_JVM_OPTIONS='-Dhttps.proxyHost=localhost -Dhttps.proxyPort=1080' boot -h

Vim Setup

Add the following lines into $MYVIMRC:

Plug 'guns/vim-clojure-static'
Plug 'tpope/vim-fireplace'
Plug 'guns/vim-clojure-highlight'
Plug 'kien/rainbow_parentheses.vim'

Tutorial

According to Tutorial 1 - The Basics and Tutorial 2.



Published

May 2, 2018

Last Updated

May 8, 2018

Category

Tech

Tags

  • clojurescript 1
  • front-end 1
  • interactive 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor