Install Docker from the official Docker website. Either Docker for Mac or Docker for Windows. Once Docker has been installed, open the application to allow it to run.
Verify that you have Docker installed by running:
docker
cd lrndeveloper
make start
make connect
# from inside the docker image
lrndev
Install Git from https://git-scm.com/
Verify that you have Git installed by running:
git
Developer tools which will help you build Polymer-based LRN Components even faster, as well as streamlining installation issues associated with dependencies on your computer. If you get any errors about permissions along the way you may need administrative permissions on your machine.
cd ~/ && mkdir -p Documents/git/elmsln/LRNWebComponents/ && cd Documents/git/elmsln/LRNWebComponents/
curl -s https://api.github.com/orgs/LRNWebComponents/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone \"#{repo["html_url"]}\" ]}' && cd lrndeveloper
Go to https://nodejs.org/en/ and install the 6.x+ LTS release.
cd ~/Documents/git/elmsln/LRNWebComponents/lrndeveloper
sudo sh osx-setup.shTo create a handy shortcut, go into your CLI and type the following, ensuring that the path below matches wherever you installed this project:
echo "alias lrndev='bash ~/Documents/git/elmsln/LRNWebComponents/lrndeveloper/lrndev.sh'" >> ~/.bash_profile && source ~/.bash_profile
Now you can run the CLI by typing lrndev from anywhere and step through the prompts.
After this, to build a new component for lrn, start in the project directory:
cd ~/Documents/git/elmsln/LRNWebComponents/lrndeveloper/
And run the following command to create a new element, which must contain at least one dash. In this example, my-cool-component is the name of your new LRN element. This could be lrn-whatever, lrndesign-whatever, hax-whatever, or lrnsys-whatever.
sh lrn.sh my-cool-component
This script will:
polymer serve --open to give you a mini serve instance to see what it madeFrom here, it's your responsibility to build something awesome for education. Make us great!
Looking for a demo? Please check out this YouTube video to see this tool in action.
Build Image
$ docker build -t lrndeveloper .
Start Container
$ docker run -it --rm -v $(pwd):/home/node/html lrndeveloper bash
Serve From Container
$ docker run -it --rm -v $(pwd):/home/node/html -p 8081:8081 lrndeveloper
If Docker says that an existing port is already taken then stop all other containers.
$ docker stop $(docker ps -a -q)
Content type
Image
Digest
Size
437.5 MB
Last updated
over 8 years ago
docker pull heymp/lrndeveloper