{"id":1216,"date":"2013-10-26T01:40:16","date_gmt":"2013-10-26T07:40:16","guid":{"rendered":"http:\/\/bateru.com\/news\/?p=1216"},"modified":"2013-10-26T01:55:09","modified_gmt":"2013-10-26T07:55:09","slug":"social-network-in-30-days-day-2","status":"publish","type":"post","link":"https:\/\/bateru.com\/news\/2013\/10\/social-network-in-30-days-day-2\/","title":{"rendered":"Social Network in 30 days : Day 2"},"content":{"rendered":"<p>Friday just past, so here&#8217;s an report.<\/p>\n<p>Day 2 Report:<br \/>\nFinished 3\/4 tasked that were scheduled yesterday. I only had around 4-5 hours of programming time after work but I think I got a lot done.<br \/>\nThe site is now hosted on heroku.com at <a href=\"http:\/\/linksteach.me\">http:\/\/linksteach.me<\/a>.<\/p>\n<p>Feature List:<br \/>\nThe goal of the site is now to create a reddit-like site for school. This idea seems more like a social bookmarking website, rather than a social network.<br \/>\nA social bookmarking site values the content of the links more than the user.<br \/>\nA social network is values the user more than the content.<br \/>\nHere&#8217;s a brief and general overview of the features<\/p>\n<p>Views (Non-registered user) can;<br \/>\n&#8211; View Posted content<br \/>\n&#8211; Search\/Browse\/Filter for posted content<\/p>\n<p>Registered Users can;<br \/>\n&#8211; Has the same abilities as a viewer<br \/>\n&#8211; Post content relating to school material<br \/>\n&#8211; Vote on other&#8217;s posted content<br \/>\n&#8211; Leave comments on posted content<br \/>\n&#8211; Report content<br \/>\n&#8211; Request new features and material<\/p>\n<p>Moderators;<br \/>\n&#8211; Ban users<br \/>\n&#8211; CRUD user&#8217;s content<\/p>\n<p>Admin;<br \/>\n&#8211; Has all priveleges<br \/>\n&#8211; Ban Users, Moderators<br \/>\n&#8211; CRUD any posted content<\/p>\n<p>Milestones (Dates):<br \/>\n&#8211; Oct 24, 2013 &#8211; Start of 30 day challenge<br \/>\n&#8211; Nov 5th &#8211; Alpha release<br \/>\n&#8211; Nov 7th &#8211; Collect feedback from at least 5 users and find out where to improve<br \/>\n&#8211; Nov 14 &#8211; Beta release<br \/>\n&#8211; Nov 15 &#8211; Collect feedback from at least 5 users and find out where to improve<br \/>\n&#8211; Nov 23 &#8211; Final Release, 30 day challenge complete.<\/p>\n<p>HomePage:<br \/>\nSetting up Golang with Heroku was quick and simple after reading this guide. <a href=\"http:\/\/mmcgrana.github.io\/2012\/09\/getting-started-with-go-on-heroku.html\">Getting Started with Go on Heroku<\/a> by Mark McGranaghan. I decided on sticking with Heroku, instead of Google App Engine because using Google App Engine for hosting requires to many architectural changes.<\/p>\n<p>Here&#8217;s the result.<br \/>\n<a href=\"http:\/\/linksteach.me\"><br \/>\n<div class=\"imagecaptioneasy imagecaptioneasy_nter size-full wp-image-1218\" style=\"width:1046px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1218\" alt=\"Homepage.linksteach.me.2013-10-26 01-39-26\" src=\"http:\/\/bateru.com\/news\/wp-content\/uploads\/2013\/10\/Homepage.linksteach.me_.2013-10-26-01-39-26.png\" width=\"1046\" height=\"334\" srcset=\"https:\/\/bateru.com\/news\/wp-content\/uploads\/2013\/10\/Homepage.linksteach.me_.2013-10-26-01-39-26.png 1046w, https:\/\/bateru.com\/news\/wp-content\/uploads\/2013\/10\/Homepage.linksteach.me_.2013-10-26-01-39-26-300x95.png 300w, https:\/\/bateru.com\/news\/wp-content\/uploads\/2013\/10\/Homepage.linksteach.me_.2013-10-26-01-39-26-1024x326.png 1024w\" sizes=\"auto, (max-width: 1046px) 100vw, 1046px\" \/><br style=\"clear:both\" \/><span>Homepage.linksteach.me.2013-10-26 01-39-26<\/span><\/div><\/a><\/p>\n<p>On the homepage I hosted some of the content on Amazon S3 storage but converting all the URLs to point to it is a HUGE hassle. So I don&#8217;t think I&#8217;m going to be using them until the traffic demands for a CDN.<br \/>\nA major problem I had with Heroku was finding out how to point to the correct filepath for static content on the file system. The answer is simple. The base directory is where `.git` is hosted.<\/p>\n<p>Login:<br \/>\nI got stuck on this part because I needed to figure out how to properly make a nonce (one time token).<br \/>\n<a href=\"https:\/\/github.com\/LarryBattle\/nonce-golang\">https:\/\/github.com\/LarryBattle\/nonce-golang<\/a><br \/>\nMore information here about nonce. <a href=\"https:\/\/github.com\/Unknwon\/build-web-application-with-golang_EN\/blob\/master\/eBook\/04.4.md\">Chapter 4.4 of &#8220;Building Web Applications with Golang&#8221;<\/a><\/p>\n<p>Goals for tomorrow:<br \/>\n&#8211; Create mock up screen shots<br \/>\n&#8211; Create a login page<br \/>\n&#8211; Create a DB connection test page.<br \/>\n&#8211; Update <a href=\"https:\/\/github.com\/LarryBattle\/nonce-golang\">https:\/\/github.com\/LarryBattle\/nonce-golang<\/a> to include demo and documention<br \/>\n&#8211; Create a sample unit test<br \/>\n&#8211; Create a profile setup page.<\/p>\n<p>Done with day 2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Friday just past, so here&#8217;s an report. Day 2 Report: Finished 3\/4 tasked that were scheduled yesterday. I only had around 4-5 hours of programming time after work but I think I got a lot done. The site is now hosted on heroku.com at http:\/\/linksteach.me. Feature List: The goal of the site is now to &hellip; <a href=\"https:\/\/bateru.com\/news\/2013\/10\/social-network-in-30-days-day-2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Social Network in 30 days : Day 2<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[157],"tags":[],"class_list":["post-1216","post","type-post","status-publish","format-standard","hentry","category-sn_in_30_days"],"_links":{"self":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/1216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/comments?post=1216"}],"version-history":[{"count":5,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/1216\/revisions"}],"predecessor-version":[{"id":1222,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/1216\/revisions\/1222"}],"wp:attachment":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/media?parent=1216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/categories?post=1216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/tags?post=1216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}