Recently in the course, we have been built all the websites using codepen.io or codesanbox.io. But things are moving to local (your laptop), everything by now is built and tested locally. So, what if we want to share our work with our friends or our dear mentors? Netlify and Github are here to help.

In short, a web project is made of 2 parts : the codebase and the production of that code. With codepen.io or codesanbox.io, all of them are in one place which make it easier for beginners to start fast. But, we are no beginner, we want to utlize our machine power and indepent from internet hiccup to code locally ; then deploy (publish) our work later when neccessary.

Online codebase on Github

The local codebase live in your machine, only you have the access. To push your code to Github is simply create an online version of your code availble in case of water spill on laptop. An online repository on Github will help you to :

Quickstart Github

  1. Sign-up for Github account Github website
  2. Create a repository Get start create your first Github repository here Tip: You could learn more about Github in that guide

Online production on Netlify

Netlify is a web hosting infrastructure and automation technology company. Netlify simplifies the process of deploying your website. It does all the work for us that we probably don't want to spend too much time or effort on. Netlify works by connecting to your GitHub repository to pull your source code, then it typically runs a build process to pre-render all of your pages in static HTML. Hosting a website on Netlify means :

Quickstart Netlify

  1. Sign-up a Netlify account :First thing first, get to the site Netlify and sign up with your github account. This will help Netlify connect automatically to your Github account for fastest deploying experiences.
  2. Follow exercise bellow to deploy your first project to Netlify

A/ Create a Github repo from scratch

github-readme

B/ Deploy to netlify

  1. Let get your CV site from previous HTML CSS course live!
  2. Then share it to your Facebook (or Instagram).
  3. The total points from your post (like + 1 point and share + 3 points) will be your score on this assignment! 😉
  4. Submit your Github repo both Netlify production links.

Jks, you don't have to share your CV on Facebook. Just submit your assignment here 😉 Have fun deploying!