Shadrock / studio-week1

First set of activities for week 1 of the IDCE 30262 studio.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to the Studio Week 1!

Building on our lectures about “How the Internet works”, you will create and host a website this week. The goal is to get familiar with how the different pieces of a website work (e.g. HTML files, the .CSS files, etc) and be able to connect these things to create a website. Because web maps live on the web this will provide you with a good foundation for creating custom maps and using existing maps. To start with, fork a copy of this repository into your account (click here if you don't remember what that means). While you can do this entire set of exercises in browser, I highly recommend cloning a local copy that you can work with even if you are not connected to the Internet (click here if you don't know what that means).

Expected Outputs for this week / what to submit:

Listed below are links to different tutorials and resources that you can use to build your web site, including details embedding some of your previous labs! The expected output for the end of this week is a website with a few embeds, including:

  • your KnightLab visualization (lab 1);
  • your 311 incidents feature layer (lab5);
  • along with two new items that you will need to create, then embed, in your web page: a basic dataset in GeoJSON and a Google map.

At the end of the week you will submit a link to your web site via Moodle. See tutorials / instructions below and happy coding!

Tutorials / Instructions

  1. To create your web site, you will follow this great tutorial by @jmcglone. Your website will be created and hosted using Github Pages: it is a "user site" that lives in a Github repository in your personal account (see more on Github pages types and limits below). About half of the tutorial uses basic HTML and the other half uses a relatively new technology called Jekyll, which uses Markdown (the way we style the text in Github repositories) in combination with HTML. Once you’ve completed the tutorial, make some changes to the website: change the fonts, the colors, anything you like. If you want to take things even further see the “additional resources” section below for how to use web templates for professional looking sites and you could completely redo your site with a template.
  2. To embed your KnightLab output from lab 1, follow the instructions for embedding the Timeline (scroll down to step #4) or click the “share” button in the upper right hand corner of your Storymap (see image) and scroll down to get the embed code for your web page.
  3. To Embed AGOL Feature Layer from Lab 5 follow this video (and try not to get creeped out by the narrator’s voice): or follow ESRI’s written instructions.
  4. To embed your Google map, first... create a Google map with some customized pins and a preferred base map! Start by creating your map here. When you're finished with it get the embed code (see below) and remember that you can change the height and width by passing arguments in the URL... remember the lecture on changing Google maps by changing the URL? For an example of a “custom” Google map have a look at this one I made to share a trip my wife and I took with our friends. Why is good to know how to embed Google maps? Because they are ubiquitous and super easy to use– sometimes that’s all you need. Secondly, by forcing you to create a Google map you have to make some really careful symbology decisions with a limited amount of choice. Finally, some web sites only allow for web maps through Google: my wife and I had a wedding web site that did this!
  5. To create a GeoJSON data set and web map embed there are a few steps:

Additional Resources.

After successfully following the tutorial and launching your website, you can take things further (if you want, but not required). For example you could:

Info about "Github Pages" types and limits

There are three types of GitHub Pages site: project, user, and organization. Every Github account may have one user site, one organizational site, and multiple project sites.

  • User and organization sites are always published from a repository named <user>.github.io or <organization>.github.io. Unless you're using a custom domain, user and organization sites are available at http(s)://<username>.github.io or http(s)://<organization>.github.io. For example, if I wanted to create my own portfolio site, I would create a repo called shadrock.github.io which would then be rendered at http(s)://shadrock.gitub.io.
  • Project site are stored in the same repository as their project. Unless you're using a custom domain, project sites are available at http(s)://<user>.github.io/<repository> or http(s)://<organization>.github.io/<repository>. For example, if I had a repo called final-project in my account and wanted to create a special site just for it, it would be called shadrock.github.io/final-project.

The limits for websites are fairly small (under 1GB) but if you're not hosting lots of images or data, you can build out quite a nice little site. See the Github documentation for further details.

About

First set of activities for week 1 of the IDCE 30262 studio.