02 - Setting up Web Development Framework
The following is a walkthrough of setting up your web development framework.
Setting Up Local Development Environment
By the end of this lesson, you will be able to create a basic framework folder that is shown below. This is a relatively simple process.
- Create a folder called framework.
- Open the folder and create three sub folders
- css
- img
- js
Throughout the course for your web site examples we will be using the same file structure.
css
folder: This folder will contain the CSS code used to style your content (for example, setting text and background colors). Create a folder calledcss
, inside yourframework
folder.img
folder: This folder will contain all the images that you use on your site. Create a folder calledimg
, inside yourframework
folder.js
folder: This folder will contain all the JavaScript code used to add interactive functionality to your site (e.g., buttons that load data when clicked). Create a folder calledjs<.code>, inside your
framework
folder.- Open Sublime Text and create a new file and save it to your framework folder and call the file index and give it the
.html
extension. It is the.html
extension that triggers sublime text into becoming an html editor. index.html
: This file will generally contain your web site landing/homepage content, including all the text and images that you want your design to have. It is the first page people see when they first go to your site. To create the index.html page use your text editor. Create a new file called index.html and save it just inside yourframework
folder.- Modify the
index.html
by adding the code shown in the screenshot below. - Sublime Text:
- Visual Studio Code:
Your framework is now complete.
Throughout the course we will be adding to your framework folder so that when you want to build a site you will take a copy of the framework folder, rename it to the project you are working on, open the index.html in the browser, the folder in Visual Studio Code or Sublime Text, and you can start building your site.
Running your web page in the browser shuould look like:
There are two recommended editing tools for this course, Visual Studio Code and Sublime Text.