Giter Club home page Giter Club logo

web-dev-workshop's Introduction

Make Your Own Website

  1. To get started, you'll first need to create a GitHub account, which can be done here.

  2. Next, you'll need to make a copy of this repository on your own account. To do so, click on Use this template (see top right corner of the image below).

Use this template

  1. Fill out the information with a repository name of your choice (this example will use webdev-intro-workshop). Make sure to make the repository public.

Filling out template

  1. After your repository is generated, go to the Settings tab (right side of the picture below).

Settings

  1. Scroll down to the GitHub Pages section, change Source to main (you can leave the / (root) as is) and hit Save.

GitHub Pages

  1. This template is now ready to be hosted on GitHub pages, and you should see a link in the GitHub Pages section of settings. It may not work immediately, but after a few minutes you should see the results of the template at the specified URL.

GitHub Pages URL

  1. Now that we've got GitHub pages working, you'll need to set up a CodeSandbox account. Navigate to the sign-in page and hit Sign in with GitHub. After signing in with your GitHub, you'll be redirected to your account dashboard.

  2. From the dashboard, click on New Sandbox. Switch to the Import Project tab and enter the GitHub URL (for example, https://github.com/arpanlaha/webdev-intro-workshop) of the repository you just created. Hit Import and Fork to generate your sandbox.

New Sandbox

Import Project

  1. You'll now have copies of all the files from the template in CodeSandbox. As you make any edits, you'll be able to see the changes reflected on the right-hand panel.

  2. Click on the GitHub logo on the left-hand vertical navigation bar (third from the bottom in the screenshot below) and hit Sign in.

GitHub logo

  1. After signing in, hit Link Sandbox in the same menu pane to link the sandbox you're working on to the repository you just created.

Link Sandbox

  1. You can now make changes in your sandbox and push them to your repository, from which they'll be deployed to GitHub pages. Let's test this out.

  2. Switch back to the filesystem view (second icon below my profile picture in the screenshot below) and go to index.html.

filesystem view

  1. On line 11, after Hello world!, add some more text (Test in the example) and save using your operating system's shortcut (Ctrl-s or Cmd-s). You should see this reflected on the right.

Add test

  1. Navigate back to the GitHub menu pane (where we linked our sandbox). Add a short description of your changes to the Summary input (not the Optional description), and hit Commit Changes. If you then navigate to your GitHub repository, you'll see your changes have been pushed. After a few minutes, you'll also see your changes reflected in the deployed GitHub Pages URl we made in step 6.

Commit changes

  1. You're now ready to start building your own personal website!

Your GitHub Pages URL

You'll notice that the deployed website will be hosted at <username>.github.io/<repository name>, or arpanlaha.github.io/webdev-intro-workshop in our example. If you want to host a website at your GitHub Pages root, or just <username>.github.io, create a repository with the name <username>.github.io and follow steps 4-6 from above to enable GitHub Pages.

web-dev-workshop's People

Contributors

tffnd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.