| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is the source code for http://tutorials.codebar.io/
This is a GitHub Pages repo, so you can render the pages with Jekyll. First make sure to install the version of Ruby indicated in .ruby-version, as well as the bundler gem. Then:
(you could also use your favourite manager, chruby, rbenv, rvm, etc. See instructions for rvm at the end of this README)
If you are just updating or adding new tutorials, follow steps 1 to 3 only.
If you also want to make changes to the structure of the site (i.e. if you want to modify the site's Javascript files) and run the tests, you need to install Node (follow the link for installation instructions). Then:
$ npm install
$ gulpand go to http://localhost:4000/test/specrunner.html to run the tests. Tests should be green.
Gulp is only used for development, not in production. In your local copy of this repo, it will concatenate and minify the files inside the javascripts-dev folder, as well as watch for changes in that folder. The concatenated and minified JS file will be generated inside the javascripts folder. You can push both folders when you are finished with your changes. GitHub pages will then generate the site in production with whatever is inside the javascripts folder.
You can go to the general codebar Slack channel here or the dedicated tutorials channel here. Use it to get in touch and chat to other codebar students/coaches, or if you need help.
If you are not on Slack use this link to get an invite.
We encourage you to contribute with your suggestions and corrections. Head to our issues page and open a new issue or help on the existing ones.
All tutorials get the students to build something that they are able to show around at the end of the workshop.
All tutorials follow a structure:
Repetition is good. A tutorial can contain multiple exercises that ask the students to take similar steps (e.g. for HTTP Requests one exercise introduces GET, another has GET and POST etc).
Explaining and getting the students to focus on one new thing at a time, presenting students with lots of new content and usage examples can be confusing.
Before starting to write a new tutorial please speak with someone from codebar to see whether it is of interest to students.
js/lesson3/
├── assets/
├── files/
│ ├── index.html
│ ├── jquery.js
│ ├── script.js
│ └── style.css
└── tutorial.md---
layout: page
title: Introduction to jQuery
files:
- files/index.html
- files/jquery.js
- files/script.js
- files/style.css
---Download the files that you will need to work through the example
[here](download).And you're done. Commit and push as usual.
Another way of installing the project dependencies is via RVM. Follow the quick installation guide and then run:
$ rvm install 2.2.1 # inside `codebar/tutorials` folder
$ rvm gemset use codebar-tutorial --create
$ gem install bundler
$ bundle install
$ jekyll serve # go to http://127.0.0.1:4000/If you also want to make changes to the JavaScript of the site, you'll need to have Node installed. This can be done with a tool like NVM.
codebar Tutorials are released under the Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0).
| Back | FazBrowse Home | New Git URL |