Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/strenkel/jshero
JS Hero - Learn to code: JavaScript online tutorial with interactive exercises
https://github.com/strenkel/jshero
hour-of-code interactive-tutorial javascript koans learn-to-code tutorial
Last synced: 3 months ago
JSON representation
JS Hero - Learn to code: JavaScript online tutorial with interactive exercises
- Host: GitHub
- URL: https://github.com/strenkel/jshero
- Owner: strenkel
- License: other
- Created: 2016-10-15T21:40:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T14:27:27.000Z (7 months ago)
- Last Synced: 2024-05-03T01:32:44.022Z (6 months ago)
- Topics: hour-of-code, interactive-tutorial, javascript, koans, learn-to-code, tutorial
- Language: HTML
- Homepage: https://www.jshero.net
- Size: 5.54 MB
- Stars: 25
- Watchers: 1
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Authors: AUTHORS
Awesome Lists containing this project
README
# JS Hero
JS Hero: JavaScript tutorial with exersices/koans.
Website:
Static websites: run locally (limited) or on any web server (recommended).
Locally only in browsers that support locally local storage (Firefix, not Chrome, ...).## Folder
www: The built project
src: Sources to build the project
build: Build scripts
test: Unit tests## Deploy
Copy the content of the folder `www` in a web server (e.g. apache).
## Local use
Open `www/index.html` in a browser. Works limited.
## Build
Requirement: node.js
After changes JS Hero has to be rebuilt with npm.
`package.json` together with `build.js` and `build.sh` defines the necessary steps and modules.Use `npm install` to install the modules once.
Use `npm run build` to (re)build the project.`npm run build` depends (unfortunately) on the operating system. It only runs with a Linux shell. Use `Git Bash` or `WSL` on windows.
## Add a new koan
1. Copy an existing koan and modify it.
2. Insert the id of the new koan in the file order-de.js or order-en.js at the desired position.
3. Execute `npm run build` in a linux shell.
4. Refresh your browser