CS130: Spring 2020

Intro to the Web

CS130: Spring 2020

Lessons > Tutorial 8. Tutorial 8

Schedule

Date Session Topic
Th, 5/28: 4-5PM Tutorial with Anna Setting up your own domain name
Fr, 5/29: 3-4PM Tutorial with Sarah Parallax & Animations
Fr, 5/29: 4-5PM Tutorial with Sarah Faking JSON Data w/Fetch

Sessions

I. Custom Domain Names (Th, 4-5PM)

From Anna: Here’s a couple links to help you host your project on a custom domain! Again, it’s really easy to purchase a domain through GoDaddy or Google Domains, and it’s pretty cheap (usually around $12/year, automatically renewing until you cancel).

I recommend following the first one since it’s a lot simpler/more straight forward, but the second one is more thorough incase you get stuck somewhere.

II. Animations (Fr, 3-4PM)

Download Tutorial Files

For the Animations tutorial, I was thinking of just showing you some options and talking through how you might approach incorporating some of these florishes into your website. First, let me show you a few links I found online:

Parallax

Other Animation Libraries and Tutorials

  • AnimeJS
  • Some interesting CSS Shorts on LinkedIn learning, which deconstruct various design techniques / florishes.

In order to access the LinkedIn content, please sign in with your NU account.

Sign into LinkedIn Learning

III. Custom Data + Templates (Fr, 4-5PM)

Video from today

In order to “fake” a database interaction, you have to create one or more JSON files that your interact with using fetch. However, there is one security trick: when you’re testing on you local computer, you have to run a local server so that you don’t get a security error. To do this:

  1. Open your Terminal or commmand prompt
  2. Navigate to your project directory
  3. Run the built-in python server module (depending on whether Python 2 or 3 is installed on your machine):
    • python2: python -m SimpleHTTPServer 8000
    • python3: python -m http.server 8000

After you’ve run this command, open your web browser and navigate to http://localhost:8000

When you’re done with this step, please download the exercise files.

Download Tutorial Files