You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-21Lines changed: 54 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -2,52 +2,85 @@ This is the source code for <http://tutorials.codebar.io>
2
2
3
3
## Getting started
4
4
5
-
This is a [GitHub Pages](https://pages.github.com/) repo, so you can render the pages with [Jekyll](http://jekyllrb.com/):
5
+
This is a [GitHub Pages](https://pages.github.com/) repo, so you can render the pages with [Jekyll](http://jekyllrb.com/).
6
6
7
-
1.`bundle install`, which will install Jekyll
8
-
2.`bundle exec jekyll serve`
9
-
3. go to http://127.0.0.1:4000
7
+
The recommended way of installing the project depdendencies is via [RVM](https://rvm.io/rvm/install).
8
+
Follow the [quick installation guide](https://rvm.io/rvm/install#quick-guided-install) and then run:
10
9
11
-
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, first make sure you have a recent version of npm (node) installed. Then do:
In order to serve the site, you'll need to have [Node](https://nodejs.org/en/) installed.
18
+
This can be done with a tool like [NVM](https://github.com/creationix/nvm). Then run:
19
+
20
+
```bash
21
+
$ jekyll serve # go to http://127.0.0.1:4000
22
+
```
23
+
24
+
If you also want to make changes to the structure of the site (i.e. if you want
25
+
to modify the site's Javascript files) and run the tests, you can:
12
26
13
27
```bash
14
28
$ npm install
15
29
$ gulp
16
30
```
17
31
18
-
and then go to http://localhost:4000/test/specrunner.html to run the tests. Tests should be green.
32
+
Then go to http://localhost:4000/test/specrunner.html to run the tests. Tests should be green.
19
33
20
-
> *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.*
34
+
> *Gulp is only used for development, not in production. In your local copy of
35
+
> this repo, it will concatenate and minify the files inside the
36
+
> `javascripts-dev` folder, as well as watch for changes in that folder. The
37
+
> concatenated and minified JS file will be generated inside the `javascripts`
38
+
> folder. You can push both folders when you are finished with your changes.
39
+
> GitHub pages will then generate the site in production with whatever is
40
+
> inside the `javascripts` folder.*
21
41
22
42
If you are just updating or adding new tutorials, follow steps 1 to 3 only.
23
43
24
44
## Getting in Touch
25
45
26
-
You can go to the general [codebar Slack channel here](https://codebar.slack.com/messages/general/) or the dedicated [tutorials channel here](https://codebar.slack.com/messages/tutorials/). Use it to get in touch and chat to other codebar students/coaches, or if you need help.
46
+
You can go to the general [codebar Slack channel here](https://codebar.slack.com/messages/general/) or the
47
+
dedicated [tutorials channel here](https://codebar.slack.com/messages/tutorials/). Use it to get in touch
48
+
and chat to other codebar students/coaches, or if you need help.
27
49
28
50
If you are not on Slack use [this link](http://codebar-slack.herokuapp.com/) to get an invite.
29
51
30
52
## Contributing
31
53
32
-
We encourage you to contribute with your suggestions and corrections. Head to our [issues page](https://github.com/codebar/tutorials/issues) and open a new issue or help on the existing ones.
54
+
We encourage you to contribute with your suggestions and corrections. Head to our
55
+
[issues page](https://github.com/codebar/tutorials/issues) and open a new issue or
56
+
help on the existing ones.
33
57
34
58
35
-
##### General tutorial rule
59
+
##### General tutorial rule
36
60
37
-
1. All tutorials get the students to build something that they are able to show around at the end of the workshop.
61
+
1. All tutorials get the students to build something that they are able to show around at the end of the workshop.
38
62
39
63
2. All tutorials follow a structure:
40
64
* Objectives - "In this tutorial we are going to look at..."
41
-
* Goals - "By the end of this tutorial you will have..."
42
-
* Then the exercises.
43
-
* Bonus - This is not always required but if you feel there is something that could be added then please include it.
44
-
* Further reading - Again this is not always required but if you feel there was something in the tutorials that could be covered in more depth then please include any good reading materials/videos or extra tutorials.
45
-
46
-
3. 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).
47
-
48
-
4. 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.
49
-
50
-
5. Before starting to write a new tutorial please speak with someone from codebar to see whether it is of interest to students.
65
+
* Goals - "By the end of this tutorial you will have..."
66
+
* Then the exercises.
67
+
* Bonus - This is not always required but if you feel there is
68
+
something that could be added then please include it.
69
+
* Further reading - Again this is not always required but if you feel
70
+
there was something in the tutorials that could be covered in more
71
+
depth then please include any good reading materials/videos or extra
72
+
tutorials.
73
+
74
+
3. Repetition is good. A tutorial can contain multiple exercises that ask the
75
+
students to take similar steps (e.g. for HTTP Requests one exercise
76
+
introduces GET, another has GET and POST etc).
77
+
78
+
4. Explaining and getting the students to focus on one new thing at a time,
79
+
presenting students with lots of new content and usage examples can be
80
+
confusing.
81
+
82
+
5. Before starting to write a new tutorial please speak with someone from
83
+
codebar to see whether it is of interest to students.
51
84
52
85
##### To add downloadable files to a new or existing tutorial:
0 commit comments