{"id":182,"date":"2018-04-30T18:29:11","date_gmt":"2018-04-30T18:29:11","guid":{"rendered":"https:\/\/ucsbwebdev.fzilla.com\/?p=182"},"modified":"2018-04-30T19:23:11","modified_gmt":"2018-04-30T19:23:11","slug":"creating-a-real-website-tutorial","status":"publish","type":"post","link":"https:\/\/ucsbwebdev.fzilla.com\/?p=182","title":{"rendered":"Creating a real website tutorial"},"content":{"rendered":"<p>Now that we&#8217;re going to start work on our final projects building a real website (meaning not using Codepen\u00a0or the exercise tool) we need to learn the basics of how we create websites within our computer.<\/p>\n<p>We have two options.<\/p>\n<ol>\n<li>A basic website without any fancy reloading or LESS (CSS) language<\/li>\n<li>AAn advanced website that we can quickly preview without reloading the browser and using LESS for prettier CSS<\/li>\n<\/ol>\n<h1>Basic Website<\/h1>\n<p>First create a new folder on your computer, ideally inside a folder that will contain all your web projects. A good name can be &#8220;Development&#8221; or &#8220;Projects&#8221;<\/p>\n<h2>Creating folders on a Mac<\/h2>\n<p>On a\u00a0Mac you can navigate to your user folder from the left sidebar like this:<\/p>\n<p id=\"tbFldRd\"><img loading=\"lazy\" decoding=\"async\" width=\"386\" height=\"172\" class=\"alignnone size-full wp-image-183 \" src=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75b0f3f134.png\" alt=\"\" srcset=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75b0f3f134.png 386w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75b0f3f134-300x134.png 300w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><\/p>\n<p>Then up in the menu select <strong>File -&gt; New Folder<\/strong><\/p>\n<p id=\"zQhbyJF\"><img loading=\"lazy\" decoding=\"async\" width=\"542\" height=\"146\" class=\"alignnone size-full wp-image-184 \" src=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75b295577a.png\" alt=\"\" srcset=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75b295577a.png 542w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75b295577a-300x81.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/p>\n<p>Name it one of the two names Development\/Projects. Open it, then create your new project folder. For example &#8220;First Sample Project&#8221;.<\/p>\n<h2>Creating folders on Windows<\/h2>\n<p>On Windows you can navigate to your Documents folder from the left sidebar like this:<\/p>\n<p id=\"nMzeABs\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"532\" class=\"alignnone size-full wp-image-186 \" src=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75d7b8a634.png\" alt=\"\" srcset=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75d7b8a634.png 652w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75d7b8a634-300x245.png 300w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/p>\n<p>Then right click and go to <strong>New -&gt; Folder<\/strong><\/p>\n<p id=\"GahynSu\"><img loading=\"lazy\" decoding=\"async\" width=\"1340\" height=\"1018\" class=\"alignnone size-full wp-image-187 \" src=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75da1de61f.png\" alt=\"\" srcset=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75da1de61f.png 1340w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75da1de61f-300x228.png 300w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75da1de61f-768x583.png 768w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75da1de61f-1024x778.png 1024w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75da1de61f-1200x912.png 1200w\" sizes=\"auto, (max-width: 1340px) 100vw, 1340px\" \/><\/p>\n<p>Name it one of the two names Development\/Projects. Open it, then create your new project folder. For example &#8220;First Sample Project&#8221;.<\/p>\n<h2>Initiating your basic website<\/h2>\n<p>You can download\u00a0<a href=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/basic-1.zip\">this basic Zip<\/a> as a boilerplate to create your simple website or follow the steps. To create a basic website we&#8217;ll need just two files.<\/p>\n<ol>\n<li>An HTML file that holds our website named\u00a0<strong>index.html\u00a0<\/strong>(as this is the default file the browser looks for in a folder)<\/li>\n<li>A CSS file named\u00a0<strong>style.css\u00a0<\/strong>which will hold our styles<\/li>\n<\/ol>\n<p>Now you can add your HTML inside the <strong>index.html<\/strong> file and your styles in the\u00a0<strong>style.css<\/strong>. To preview your website you can either open it from WebStorm by hovering over the <strong>index.html\u00a0<\/strong>window and clicking on the Chrome icon like this:<\/p>\n<p id=\"laaJCLY\"><img loading=\"lazy\" decoding=\"async\" width=\"1254\" height=\"768\" class=\"alignnone size-full wp-image-190 \" src=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75edb58599.png\" alt=\"\" srcset=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75edb58599.png 1254w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75edb58599-300x184.png 300w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75edb58599-768x470.png 768w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75edb58599-1024x627.png 1024w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75edb58599-1200x735.png 1200w\" sizes=\"auto, (max-width: 1254px) 100vw, 1254px\" \/><\/p>\n<p>Or navigating to Chrome and going to <strong>File -&gt; Open File<\/strong><\/p>\n<p id=\"jnbHhuz\"><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"342\" class=\"alignnone size-full wp-image-191 \" src=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75efe843c8.png\" alt=\"\" srcset=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75efe843c8.png 686w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae75efe843c8-300x150.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/p>\n<p>Then navigating to your folder and selecting <strong>index.html<\/strong><\/p>\n<h2>Initiating your advanced website<\/h2>\n<p>If you want to use GitHub (recommended) please go to the next section for instructions. Otherwise, for a simpler initiation download the following <a href=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/advanced.zip\">boilerplate<\/a>\u00a0and extract it into your Development\/Projects folder. Then rename the folder from <strong>advanced\u00a0<\/strong>to the name of your project like &#8220;Test Project 1&#8221;.<\/p>\n<h3>Running advanced boilerplate<\/h3>\n<p>Now open your new project folder with WebStorm. Click on the <strong>terminal\u00a0<\/strong>panel on the bottom of WebStorm. Inside it type the following:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">npm install<\/pre>\n<p>After that&#8217;s complete type<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">gulp<\/pre>\n<p>Your browser should automatically open our website. Now you can make changes to your HTML inside\u00a0<strong>index.html\u00a0<\/strong>or your styles in\u00a0<strong>css\/style.less\u00a0<\/strong>and it will automatically be refreshed in the browser.<\/p>\n<h2>Advanced initiation with GitHub<\/h2>\n<p>To start with our Advanced\u00a0boilerplate using GitHub and creating your own new repository follow these steps:<\/p>\n<ol>\n<li>Go to\u00a0<a href=\"https:\/\/github.com\/agrublev\/ucsb-web-boilerplate\">https:\/\/github.com\/agrublev\/ucsb-web-boilerplate\u00a0<\/a><\/li>\n<li>Click the Fork button on the top right\n<p id=\"hNrRmGU\"><img loading=\"lazy\" decoding=\"async\" width=\"202\" height=\"80\" class=\"alignnone size-full wp-image-197 \" src=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76c30119f4.png\" alt=\"\" \/><\/p>\n<\/li>\n<li>Then inside your own GitHub repository which should look like https:\/\/github.com\/YOUR_USER_NAME\/ucsb-web-boilerplate get the Clone url\u00a0from the green button\n<p id=\"rGAsMDR\"><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"462\" class=\"alignnone size-full wp-image-198 \" src=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76c6ca1a17.png\" alt=\"\" srcset=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76c6ca1a17.png 748w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76c6ca1a17-300x185.png 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/p>\n<\/li>\n<li>Now go to WebStorm and select the menu\u00a0<strong><strong>VCS -&gt; Checkout from Version Control -&gt; GitHub<br \/>\n<\/strong><\/strong><\/p>\n<p id=\"TNWYxpT\"><img loading=\"lazy\" decoding=\"async\" width=\"1338\" height=\"374\" class=\"alignnone size-full wp-image-199 \" src=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76cc23a597.png\" alt=\"\" srcset=\"https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76cc23a597.png 1338w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76cc23a597-300x84.png 300w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76cc23a597-768x215.png 768w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76cc23a597-1024x286.png 1024w, https:\/\/ucsbwebdev.fzilla.com\/wp-content\/uploads\/2018\/04\/img_5ae76cc23a597-1200x335.png 1200w\" sizes=\"auto, (max-width: 1338px) 100vw, 1338px\" \/><\/p>\n<\/li>\n<li>Enter the URL you copied with your username in it!<\/li>\n<li>Select a parent directory like Development\/Projects and then change Directory Name to something like MyProject1<\/li>\n<\/ol>\n<p>You should now have the advanced project ready. To initiate look for the section above named\u00a0<strong>&#8220;Running advanced boilerplate&#8221;<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that we&#8217;re going to start work on our final projects building a real website (meaning not using Codepen\u00a0or the exercise tool) we need to learn the basics of how we create websites within our computer. We have two options. A basic website without any fancy reloading or LESS (CSS) language AAn advanced website that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-182","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=182"}],"version-history":[{"count":6,"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions\/200"}],"wp:attachment":[{"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ucsbwebdev.fzilla.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}