<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Prep on CS 347</title>
    <link>/categories/prep/</link>
    <description>Recent content in Prep on CS 347</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/categories/prep/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Prep 01: Setup Dev Environment and Creating a skeleton website</title>
      <link>/prep/01/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/prep/01/</guid>
      <description>&lt;h2 id=&#34;prereq&#34;&gt;Prereq&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a directory for 347 work on your local machine. See our docs on:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;../../docs/#working-locally-vs-remotely&#34;&gt;Working Locally vs. Remotely&lt;/a&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;🚨 &lt;strong&gt;Complete the &lt;a href=&#34;../../docs/#remote-authentication-via-key-pairs&#34;&gt;auth via keypairs&lt;/a&gt; steps&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;../../docs/#files&#34;&gt;Files&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;instructions&#34;&gt;Instructions&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Do the following (&amp;ldquo;do&amp;rdquo; as in read, take notes, and try to make work) from &lt;a href=&#34;https://cs-347-f26.github.io/mdn-content/en-us/docs/learn_web_development/extensions/server-side/django/&#34;&gt;our fork of the MDN Django Tutorial&lt;/a&gt;:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Django introduction&lt;/li&gt;&#xA;&lt;li&gt;Setting up a Django development environment&lt;/li&gt;&#xA;&lt;li&gt;Django Tutorial: The Local Library website&lt;/li&gt;&#xA;&lt;li&gt;Django Tutorial Part 2: Creating a skeleton website&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;submitting&#34;&gt;Submitting&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;After you complete the steps linked above, you will have pushed some commits to a github repository.&lt;/li&gt;&#xA;&lt;li&gt;Github provides a link for each commit.&lt;/li&gt;&#xA;&lt;li&gt;Submit a &lt;code&gt;commit.url&lt;/code&gt; file containing the url to the latest commit of your public github repo that was relevant to the steps above to gradescope.&lt;/li&gt;&#xA;&lt;li&gt;Here&amp;rsquo;s an example of what such a URL might look like &lt;code&gt;https://github.com/347s26/locallibrary-hcientist/commit/caca9ecbcc79f5aa3ec29300c47c123b9a7a0ca5&lt;/code&gt;. See the screenshot below to see where to click to reach the right kind of URL.&#xA;&lt;img src=&#34;../../prep/01/click%20to%20get%20commit%20url.png&#34; alt=&#34;screenshot showing most recent commit link&#34;&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
    </item>
    <item>
      <title>Prep 02: Django Models and admin from MDN Tutorial Parts 3-4</title>
      <link>/prep/02/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/prep/02/</guid>
      <description>&lt;p&gt;Continuing to work in the repo you created for Prep 01.&lt;/p&gt;&#xA;&lt;h2 id=&#34;part-3&#34;&gt;Part 3&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Do Part &lt;a href=&#34;https://cs-347-f26.github.io/mdn-content/en-us/docs/learn_web_development/extensions/server-side/django/models/&#34;&gt;3 (Models)&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Question: what is a migration? did we need any yet? what alternative could there have been? how do they work?! e.g.&#xA;&lt;ol&gt;&#xA;&lt;li&gt;how does django know what to put in a migration?&lt;/li&gt;&#xA;&lt;li&gt;how does django know which migrations have been applied?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Read &lt;a href=&#34;https://shinesolutions.com/2018/01/08/falsehoods-programmers-believe-about-names-with-examples/&#34;&gt;&amp;ldquo;Falsehoods Programmers Believe About Names – With Examples&amp;rdquo;&lt;/a&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Based on the points in the article, what (if any) changes might you propose to the models in this Prep?&lt;/li&gt;&#xA;&lt;li&gt;Have you ever been unsure how to enter information about yourself into a computer system?&#xA;&lt;ol&gt;&#xA;&lt;li&gt;What information were you trying to enter?&lt;/li&gt;&#xA;&lt;li&gt;Do you recall what system?&lt;/li&gt;&#xA;&lt;li&gt;What was the cause of your uncertainty?&lt;/li&gt;&#xA;&lt;li&gt;(reflect on this personally, and if you have reflections that you wish to share that don&amp;rsquo;t doxx you, feel free to bring them to in-class discussion)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Consider installing some database tools:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;GOAT: &lt;a href=&#34;https://dbeaver.io/download/&#34;&gt;DBeaver Community&lt;/a&gt; (supports pretty much every kind of db ever)&lt;/li&gt;&#xA;&lt;li&gt;db-specific:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://sqlitebrowser.org/&#34;&gt;DB Browser for SQLite&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.pgadmin.org/&#34;&gt;PGAdmin for PostgresQL (we don&amp;rsquo;t need the PostgresQL stuff yet)&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;best-practices-env-files-for-repeatability-secrets-and-great-good&#34;&gt;Best Practices: env files (for repeatability, secrets, and great good)&lt;/h2&gt;&#xA;&lt;p&gt;env files help track configuration information. Often these values may differ on different machines of your own or at least between you and a team member, and likely also between your machine for (local) development and your server(s) in the cloud that hosts your app.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Prep 03: Django Admin Site and Home Page from MDN Tutorial Part 5</title>
      <link>/prep/03/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/prep/03/</guid>
      <description>&lt;ol&gt;&#xA;&lt;li&gt;Continuing to work in the repo you created for Prep 01, and extended in Prep 02, complete MDN Django Tutorial Part 5.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;a href=&#34;https://cs-347-f26.github.io/mdn-content/en-us/docs/learn_web_development/extensions/server-side/django/home_page/#what_does_it_look_like&#34;&gt;Near the end of Part 5&lt;/a&gt;, the tutorial fails to mention that if you have had your development server (the one you get with the &lt;code&gt;runserver&lt;/code&gt; command) running the whole time you were working on this Part, you&amp;rsquo;ll have to kill it and start it again before you can expect django to find your new template.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Push your updated code back to the github repo&lt;/li&gt;&#xA;&lt;li&gt;submit the most recent commit URL to the gradescope assignment.&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
    </item>
    <item>
      <title>Preps</title>
      <link>/prep/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/prep/</guid>
      <description></description>
    </item>
  </channel>
</rss>
