Skip to content

Commit fa380b0

Browse files
committed
Consolidate identical 'Developer Tools' and 'Deploying your Sites' pages with insert
1 parent bc229a8 commit fa380b0

File tree

7 files changed

+75
-270
lines changed

7 files changed

+75
-270
lines changed
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
goals do
2-
goal "Get oriented with your browser's dev tools. They're a great jumping-off point for continuing to build your HTML, CSS, and JavaScript knowledge."
3-
tip "The screenshots below are specific to the Chrome web browser, which is available for Mac and PC and has great developer tools. But if you're partial to another browser, there's usually a similar set of tools you can use."
2+
goal "Get oriented with your browser's developer tools. They're a great jumping-off point for continuing to build your HTML, CSS, and JavaScript knowledge."
3+
tip "The screenshots below are specific to the Chrome web browser, which is available for Mac, PC, and Linux and has great developer tools. But if you're partial to another browser, there's usually a similar set of tools you can use."
44
end
55

66
steps do
7-
7+
88
step do
99
message <<-MARKDOWN
10-
First, you've got to turn on your dev tools. They're hidden by default.
10+
First, you've got to turn on your developer tools. They're hidden by default.
1111

12-
<img src='img/devtools.png'>
12+
<img src='/frontend/img/devtools.png'>
1313

1414
In Chrome, you can do this by clicking _View > Developer > Developer Tools_.
1515
MARKDOWN
1616
end
17-
17+
1818
step do
1919
message <<-MARKDOWN
2020
Click on the 'Elements' button to check out your HTML.
2121

22-
<img src='img/devtools_elements.png'>
22+
<img src='/frontend/img/devtools_elements.png'>
2323

2424
Clicking on an HTML tag in the elements panel will highlight that element in the browser window. It's a great tool for debugging styling problems. On the right side of the panel, you'll even get a list of styles that are being applied to that element.
2525
MARKDOWN
@@ -30,7 +30,7 @@ steps do
3030
message <<-MARKDOWN
3131
In the 'Network' panel, you can see what other files and resources your HTML page is loading.
3232

33-
<img src='img/devtools_network.png'>
33+
<img src='/frontend/img/devtools_network.png'>
3434

3535
If you click on a file name, you can take a look at the contents of that file. This panel is a great place for debugging script linking or loading issues. (You can see HTTP headers and request params here too, with a little digging.)
3636
MARKDOWN
@@ -40,30 +40,28 @@ steps do
4040
message <<-MARKDOWN
4141
The 'Console' is the JavaScript developer's secret weapon. It lets you run JavaScript by typing it in directly &mdash; and it runs your scripts _in the context of your page_, so you can interact directly with objects and functions you've defined. It's helpful for debugging and experimenting.
4242

43-
<img src='img/devtools_console.png'>
43+
<img src='/frontend/img/devtools_console.png'>
4444
MARKDOWN
4545
end
46-
46+
4747
step do
4848
message <<-MARKDOWN
4949
The 'Sources' panel is another JavaScript pro tool. If you're used to working with an IDE that has a debugger, you'll be able to use many of the same techniques (like breakpoints, stack traces, and watch expressions) right here in the browser.
5050

51-
<img src='img/devtools_script.png'>
51+
<img src='/frontend/img/devtools_script.png'>
5252
MARKDOWN
5353
end
5454
end
55-
55+
5656
explanation do
5757

5858
message <<-MARKDOWN
5959

60-
## Keep Learning with Dev Tools
60+
## Keep Learning with Developer Tools
6161

62-
With good browser dev tools, you can pick apart every website you visit. If you see cool
62+
With good browser developer tools, you can pick apart every website you visit. If you see cool
6363
CSS styles or JavaScript animations, you can always look under the hood and figure out how
6464
they're done. It's a great way to keep learning as a front end developer.
6565

6666
MARKDOWN
6767
end
68-
69-
next_step 'add_starter_files'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
insert '_developer_tools'
2+
3+
next_step 'add_starter_files'
Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,3 @@
1-
message <<-MARKDOWN
2-
### Goal
3-
4-
<!-- Lesson 14 - Putting Your Game Online -->
5-
6-
Hosting your list requires you to make the HTML, JavaScript and CSS files
7-
available over the Internet.
8-
9-
There are three hosting options, depending on how much of a challenge you are looking
10-
for:
11-
12-
* Use a static site hosting service
13-
* Use git and Github Pages
14-
* Roll your own with a hosting provider
15-
16-
### Using a Static Site Hosting Service
17-
18-
If you are brand new to hosting websites, you may want to use a static site
19-
hosting service. These allow you to upload a zip file of html, css and
20-
javascript and have a working website. An easy one is
21-
[Forge](https://getforge.com/).
22-
23-
1. Sign up for Forge
24-
2. Zip your `IntermediateTodoList-master` directory
25-
3. Drag it into the forge website
26-
27-
Now you have a fully functioning list hosted online! Share the link
28-
with your friends and family and wow them with your skills!
29-
30-
### Using Git and Github Pages
31-
32-
If you like with git and github, take a stab at setting up your site
33-
with [Github Pages](http://pages.github.com/). The easiest thing to do is:
34-
cd .
35-
1. From the terminal, `cd` into your `IntermediateTodoList-master` directory
36-
1. Turn it into a git repository by running `git init`
37-
1. Checkout a branch called `gh-pages`
38-
1. Commit all the files
39-
1. Create a remote repository on github for the game.
40-
1. Follow their instructions for adding the github remote to your existing repo
41-
1. Follow the instructions on [Github Pages](http://pages.github.com) for
42-
setting up a project site from scratch.
43-
1. Make the `gh-pages` the default branch
44-
1. Push it on up!
45-
46-
### Rolling Your Own Hosting With a Cloud Provider
47-
48-
If you secretly are an unix admin who floats in the cloud; consider
49-
using Amazon
50-
[S3](http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) or
51-
[Rackspace Cloud
52-
Files](http://www.rackspace.com/knowledge_center/article/use-cloud-files-to-serve-static-content-for-websites)
53-
54-
Both of these services are designed to serve up static files without needing to
55-
pay for a virtual server. This makes your monthly hosting bill for even large,
56-
high traffic sites incredibly cheap.
57-
MARKDOWN
58-
1+
insert '../javascript-to-do-list/_deploying_your_site'
592

603
next_step "next_steps"
Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,3 @@
1-
goals do
2-
goal "Get oriented with your browser's developer tools. They're a great jumping-off point for continuing to build your HTML, CSS, and JavaScript knowledge."
3-
tip "The screenshots below are specific to the Chrome web browser, which is available for Mac, PC, and Linux and has great developer tools. But if you're partial to another browser, there's usually a similar set of tools you can use."
4-
end
5-
6-
steps do
7-
8-
step do
9-
message <<-MARKDOWN
10-
First, you've got to turn on your developer tools. They're hidden by default.
11-
12-
<img src='../frontend/img/devtools.png'>
13-
14-
In Chrome, you can do this by clicking _View > Developer > Developer Tools_.
15-
MARKDOWN
16-
end
17-
18-
step do
19-
message <<-MARKDOWN
20-
Click on the 'Elements' button to check out your HTML.
21-
22-
<img src='../frontend/img/devtools_elements.png'>
23-
24-
Clicking on an HTML tag in the elements panel will highlight that element in the browser window. It's a great tool for debugging styling problems. On the right side of the panel, you'll even get a list of styles that are being applied to that element.
25-
MARKDOWN
26-
tip "Chrome's Elements panel will update to match the state of your DOM as you modify it with JavaScript. Some elements panels don't do this &mdash; they just show what the HTML looked like on page load."
27-
end
28-
29-
step do
30-
message <<-MARKDOWN
31-
In the 'Network' panel, you can see what other files and resources your HTML page is loading.
32-
33-
<img src='../frontend/img/devtools_network.png'>
34-
35-
If you click on a file name, you can take a look at the contents of that file. This panel is a great place for debugging script linking or loading issues. (You can see HTTP headers and request params here too, with a little digging.)
36-
MARKDOWN
37-
end
38-
39-
step do
40-
message <<-MARKDOWN
41-
The 'Console' is the JavaScript developer's secret weapon. It lets you run JavaScript by typing it in directly &mdash; and it runs your scripts _in the context of your page_, so you can interact directly with objects and functions you've defined. It's helpful for debugging and experimenting.
42-
43-
<img src='../frontend/img/devtools_console.png'>
44-
MARKDOWN
45-
end
46-
47-
step do
48-
message <<-MARKDOWN
49-
The 'Sources' panel is another JavaScript pro tool. If you're used to working with an IDE that has a debugger, you'll be able to use many of the same techniques (like breakpoints, stack traces, and watch expressions) right here in the browser.
50-
51-
<img src='../frontend/img/devtools_script.png'>
52-
MARKDOWN
53-
end
54-
end
55-
56-
explanation do
57-
58-
message <<-MARKDOWN
59-
60-
## Keep Learning with Developer Tools
61-
62-
With good browser developer tools, you can pick apart every website you visit. If you see cool
63-
CSS styles or JavaScript animations, you can always look under the hood and figure out how
64-
they're done. It's a great way to keep learning as a front end developer.
65-
66-
Next, we'll put our knowledge of developer tools to use as we learn how clients and servers work
67-
in a modern web application.
68-
69-
MARKDOWN
70-
end
1+
insert '../frontend/_developer_tools'
712

723
next_step 'creating_a_list'
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
### Goal
2+
3+
Hosting your list requires you to make the HTML, JavaScript and CSS files
4+
available over the Internet.
5+
6+
There are three hosting options, depending on how much of a challenge you are looking
7+
for:
8+
9+
* Use a static site hosting service
10+
* Use git and Github Pages
11+
* Roll your own with a hosting provider
12+
13+
### Using a Static Site Hosting Service
14+
15+
If you are brand new to hosting websites, you may want to use a static site
16+
hosting service. These allow you to upload a zip file of html, css and
17+
javascript and have a working website. An easy one is
18+
[Forge](https://getforge.com/).
19+
20+
1. Sign up for Forge
21+
2. Zip your project directory
22+
3. Drag it into the Forge website
23+
24+
Now you have a fully functioning list hosted online! Share the link
25+
with your friends and family and wow them with your skills!
26+
27+
### Using Git and Github Pages
28+
29+
If you like with git and github, take a stab at setting up your site
30+
with [Github Pages](http://pages.github.com/). The easiest thing to do is:
31+
cd .
32+
33+
1. From the terminal, `cd` into your project directory
34+
1. Turn it into a git repository by running `git init`
35+
1. Checkout a branch called `gh-pages`
36+
1. Commit all the files
37+
1. Create a remote repository on github for the game.
38+
1. Follow their instructions for adding the github remote to your existing repo
39+
1. Follow the instructions on [Github Pages](http://pages.github.com) for
40+
setting up a project site from scratch.
41+
1. Make the `gh-pages` the default branch
42+
1. Push it on up!
43+
44+
### Rolling Your Own Hosting With a Cloud Provider
45+
46+
If you secretly are an unix admin who floats in the cloud; consider
47+
using Amazon
48+
[S3](http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) or
49+
[Rackspace Cloud
50+
Files](http://www.rackspace.com/knowledge_center/article/use-cloud-files-to-serve-static-content-for-websites)
51+
52+
Both of these services are designed to serve up static files without needing to
53+
pay for a virtual server. This makes your monthly hosting bill for even large,
54+
high traffic sites incredibly cheap.
Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,3 @@
1-
message <<-MARKDOWN
2-
### Goal
3-
4-
<!-- Lesson 14 - Putting Your Game Online -->
5-
6-
Hosting your list requires you to make the HTML, JavaScript and CSS files
7-
available over the Internet.
8-
9-
There are three hosting options, depending on how much of a challenge you are looking
10-
for:
11-
12-
* Use a static site hosting service
13-
* Use git and Github Pages
14-
* Roll your own with a hosting provider
15-
16-
### Using a Static Site Hosting Service
17-
18-
If you are brand new to hosting websites, you may want to use a static site
19-
hosting service. These allow you to upload a zip file of html, css and
20-
javascript and have a working website. An easy one is
21-
[Forge](https://getforge.com/).
22-
23-
1. Sign up for Forge
24-
2. Zip your `IntermediateTodoList-master` directory
25-
3. Drag it into the Forge website
26-
27-
Now you have a fully functioning list hosted online! Share the link
28-
with your friends and family and wow them with your skills!
29-
30-
### Using Git and Github Pages
31-
32-
If you like with git and github, take a stab at setting up your site
33-
with [Github Pages](http://pages.github.com/). The easiest thing to do is:
34-
cd .
35-
36-
1. From the terminal, `cd` into your `IntermediateTodoList-master` directory
37-
1. Turn it into a git repository by running `git init`
38-
1. Checkout a branch called `gh-pages`
39-
1. Commit all the files
40-
1. Create a remote repository on github for the game.
41-
1. Follow their instructions for adding the github remote to your existing repo
42-
1. Follow the instructions on [Github Pages](http://pages.github.com) for
43-
setting up a project site from scratch.
44-
1. Make the `gh-pages` the default branch
45-
1. Push it on up!
46-
47-
### Rolling Your Own Hosting With a Cloud Provider
48-
49-
If you secretly are an unix admin who floats in the cloud; consider
50-
using Amazon
51-
[S3](http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) or
52-
[Rackspace Cloud
53-
Files](http://www.rackspace.com/knowledge_center/article/use-cloud-files-to-serve-static-content-for-websites)
54-
55-
Both of these services are designed to serve up static files without needing to
56-
pay for a virtual server. This makes your monthly hosting bill for even large,
57-
high traffic sites incredibly cheap.
58-
MARKDOWN
59-
1+
insert '_deploying_your_site'
602

613
next_step "next_steps"

0 commit comments

Comments
 (0)