Skip to content

trybash/game

Repository files navigation

Learn Bash the Easy Way

Build Status

This is the source code for the browser-based TryBash game.

Have a look at the homepage to learn more about bash.

For offline usage you can download a copy of the game.

Overview

The whole game is a web-app running on a single page.

We use vue.js to structure the application and the setup is based on the vue webpack template.

For the terminal we created a standalone bash emulator in plain Javascript as a separate project.

Contribution

We are happy to accept new contributions! Just make sure the tests are passing (npm test) and send a Pull Request.

Setup

Make sure you have node.js installed. Then:

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# run unit tests
npm run unit
# or keep tests running
npm run unit:watch

# run e2e tests
npm run e2e

# run tests and lint
npm test

# lint javascript
npm run lint

# publish the latest version to gh-pages
scripts/deploy.sh

For the bash-emulator we use the latest version directly from Github. To update the version in the game repository, run npm install bash-emulator again.

LICENSE

MIT