💻 command-line bootcamp adventure in your browser
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
guide
markdown
static
testfiles
.gitignore
.master_exclude
Dockerfile
LICENSE.md
bundle.js
collaborators.md
guide.html
index.html
index.js
package.json
readme.md
terminal-bundle.js
terminal.html
terminal.js

readme.md

Command-line bootcamp

Learn the unix command-line by using it in your browser.

contributors

build and deploy the frontend

You'll need node.js

# install and set up nvm and node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
source ~/.bashrc

# some dependencies don't work with node 1+, so stick with 0.12
nvm install 0.12
nvm use 0.12

Once you've got node installed, grab this repo and let node install the dependencies:

git clone https://github.com/Blahah/command_line_bootcamp.git
cd command_line_bootcamp
npm install

Make your changes (if any) and then deploy:

npm run deploy

setup and run the docker server backend

Instructions for running on digitalocean:

Create a new instance of the Ubuntu+docker image.

then ssh in and...

# keep it running
tmux

# need some basics
apt-get update
apt-get install -y build-essential g++

# install and set up nvm and node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
source ~/.bashrc

# use node version 4.1
nvm install 4.1
nvm use 4.1

# major dependencies
npm install --global docker-browser-server

# setup docker
docker pull ubuntu
git clone https://github.com/Blahah/command_line_bootcamp.git
cd command_line_bootcamp
docker build -t "command_line_bootcamp" .
docker-browser-server command_line_bootcamp -p 8080

cleaning up long-running containers

Sometimes people leave their browser windows open for a really long time. If you don't want to fund the docker container running for that time, you can clean up long-running containers:

docker stop $(docker ps | grep hours | cut -d ' ' -f1 | paste - - - - )