Sign inSign up

alexellis2/learnyounode

By alexellis2

Updated over 10 years ago

learnyounode is an interactive course to learn the basics of node.js.

Image
2

1.4K

alexellis2/learnyounode repository overview

Dockerized learnyounode

Build Status

Intro

learnyounode is an interactive course to learn the basics of node.js

When I started to put the exercises into a container I naturally installed sshd along with nano and git, but as I learnt more about the 'docker way' I realised this was going against the grain.

This repo is my attempt to access everything needed to do the full course without having to interact with the container through a bash shell or ssh. To enable the correct parameters to be passed into the container I have put together a quick bash script used to launch the container. The script is not essential but it does save a lot of typing.

TL;DR

[http://blog.alexellis.io/learnyounode-in-a-docker-container/](Blog entry)

Changes

Switched to Alpine Linux, for a much smaller image

Installation

  • git clone this repo
  • build the container with ./build.sh or docker build -t alexellis2/learnyounodedocker .
  • type in docker images and you will see alexellis2/learnyounodedocker available in your library

Running the course

  • To list all available lessons type in

./learnyounode.sh

  • To see the instructions for a lesson:

./learnyounode.sh "HELLO WOLRD"

  • To try out your solution save your file as i.e. ex1.js and drop it in exercises then type:

./learnyounode.sh "HELLO WORLD" "ex1.js"

Tag summary

Content type

Image

Digest

Size

18.4 MB

Last updated

over 10 years ago

docker pull alexellis2/learnyounode