This post outlines the steps to take to get a basic web site project ready to do. These are the things you do BEFORE you start writing HTML and CSS. You should also do these AFTER you have created a project brief with a sitemap and wireframes so you know what you’re going to make.
For our projects we will use Git as our version control system and GitHub will help to keep an online backup and deploy our site on the web. There are two ways to create a Git Repository that is linked to a remote Git Repository on GitHub.
Create a GitHub Repository First
- Go to GitHub.com. Make sure you’re logged in.
- Click the + sign at the top of the page to create a new repository.
- Give the repository a name. For projects that you will deploy as github pages keep the name short and to the point. For example “portfolio” and NOT “my MMP 350 portfolio project”
- Check the “add a Readme” box (if there are no files in your repository you won’t be able to clone it.
- If this is a project that will have personal content that you don’t want other people using DON’T click to add a license.
- Click to finish creating a repository
- Clone the repository. There are two ways
- Do it all through the terminal: some instructions from GitHub.
- Copy the repository clone link and use a more visual VSCode process: my Miro on Git Clone and Fork covers this in more detail
Create Your Folder and Files First
- Create a folder on your computer for your files. Make sure to name it like you would name your repository on GitHub. For projects that you will deploy as github pages keep the name short and to the point. For example “portfolio” and NOT “my MMP 350 portfolio project”
- Note, you will need at least one file in the repository in order to publish it.
- Click on the Source Control Icon
- Click on the Publish Repository to GitHub button
- It ask you for a name with your folder name already there. Change that to change the name (I suggest you don’t so the folder is the same name on your computer and GitHub).
- Click Publish to GitHub public repository. If it’s not public then you won’t be able to publish with GitHub Pages or Netlify.
That’s it. You will also get a prompt to open the GitHub repository you just created which you can do to double check.
Here’s a video showing how to do the Folder and Files First method: view on Dropbox.
All of your project files should be in one folder (you can and should have sub-folders inside of it). For the Responsive Site project I am requiring the following structure:
- css folder
- all .css files inside
- js folder
- images folder
- all image files inside
- index.html (all projects need this)
- all other .html files at the same level as the index.html
- css folder
Here is a visual example
For the Eleventy project on Netlify we will use a different structure but still have one folder for everything.