Social Network in 30 days : Day 5


Warning: Undefined array key "layout" in /home/bateeqjg/public_html/news/wp-content/plugins/wp-about-author/wp-about-author.php on line 94

After working for 3 hours, I’m still on the login feature. This will be third day now.
It seems when I’m trying to solve one problem, it leads to 2 other issues to fix.
Here’s the part I’m stuck on, (until after work tomorrow).
I’m trying to create a session after the user logs in using beego and a free cloud instance of redis db from Redis to Go. At first I was having syntax and runtime exceptions. Now, it’s just figuring out how to format the login properties to obtain an connection to the db instance.

On the bright side of things, I gained a better understanding of Bootstrap.js 3.0 by recreating the sample examples here without viewing the source.

Goal for Day 6:
– Create basic version of the Login feature
– Connect to a Redis DB and perform basic crud operations.

I leave you all with this comic called “Why you shouldn’t interrupt a programmer”

Larry Battle

Larry Battle

I love to program, and discover new tech. Check out my <a href="http://stackoverflow.com/users/527776/larry-battle">stackoverflow</a> and <a href="https://github.com/LarryBattle">github</a> accounts.

More Posts - Website

Follow Me:Add me on XAdd me on LinkedInAdd me on YouTube

Social Network in 30 days : Day 4


Warning: Undefined array key "layout" in /home/bateeqjg/public_html/news/wp-content/plugins/wp-about-author/wp-about-author.php on line 94

Day 4. I didn’t complete any of the task because I didn’t give myself enough time to program.
Today I only spent 3 hours planning, researching and programming for the login functionality.
After spending sometime trying to finish the login feature, it turns out that I was flawed in thinking that the login was a page and not a service. Since the users will be logging in with Mozilla Persona, `/login` will verify a hash value produced from Persona and then redirect the url to the referrer url.

Here’s a video for a brief introduction to Mozilla Persona

Goal for Day 5:
– Finish the login feature
– Start with the creation of a detailed design document

Larry Battle

Larry Battle

I love to program, and discover new tech. Check out my <a href="http://stackoverflow.com/users/527776/larry-battle">stackoverflow</a> and <a href="https://github.com/LarryBattle">github</a> accounts.

More Posts - Website

Follow Me:Add me on XAdd me on LinkedInAdd me on YouTube

Social Network in 30 days : Day 3


Warning: Undefined array key "layout" in /home/bateeqjg/public_html/news/wp-content/plugins/wp-about-author/wp-about-author.php on line 94

Day 3 is up and I’ve only managed to completed the mock-ups for the site. I had a lot home maintenance to take care of.
The mock ups were developed using a free account from Gomockingbird.com

gomockingbird.com
gomockingbird.com

ltm-accountActivity
ltm-accountActivity

ltm-courses
ltm-courses

ltm-course-topic
ltm-course-topic

ltm-homepage
ltm-homepage

ltm-profile
ltm-profile

I’ll going a pdf print out on day 10 to see how I did when compared to the pre-alpha site.

Goal for day 4:
– Create a login page
– Create a DB connection test page.
– Update https://github.com/LarryBattle/nonce-golang to include demo and documentation
– Create a sample unit test
– Create a profile setup page.

Larry Battle

Larry Battle

I love to program, and discover new tech. Check out my <a href="http://stackoverflow.com/users/527776/larry-battle">stackoverflow</a> and <a href="https://github.com/LarryBattle">github</a> accounts.

More Posts - Website

Follow Me:Add me on XAdd me on LinkedInAdd me on YouTube

Social Network in 30 days : Day 2


Warning: Undefined array key "layout" in /home/bateeqjg/public_html/news/wp-content/plugins/wp-about-author/wp-about-author.php on line 94

Friday just past, so here’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 create a reddit-like site for school. This idea seems more like a social bookmarking website, rather than a social network.
A social bookmarking site values the content of the links more than the user.
A social network is values the user more than the content.
Here’s a brief and general overview of the features

Views (Non-registered user) can;
– View Posted content
– Search/Browse/Filter for posted content

Registered Users can;
– Has the same abilities as a viewer
– Post content relating to school material
– Vote on other’s posted content
– Leave comments on posted content
– Report content
– Request new features and material

Moderators;
– Ban users
– CRUD user’s content

Admin;
– Has all priveleges
– Ban Users, Moderators
– CRUD any posted content

Milestones (Dates):
– Oct 24, 2013 – Start of 30 day challenge
– Nov 5th – Alpha release
– Nov 7th – Collect feedback from at least 5 users and find out where to improve
– Nov 14 – Beta release
– Nov 15 – Collect feedback from at least 5 users and find out where to improve
– Nov 23 – Final Release, 30 day challenge complete.

HomePage:
Setting up Golang with Heroku was quick and simple after reading this guide. Getting Started with Go on Heroku 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.

Here’s the result.

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’t think I’m going to be using them until the traffic demands for a CDN.
A 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.

Login:
I got stuck on this part because I needed to figure out how to properly make a nonce (one time token).
https://github.com/LarryBattle/nonce-golang
More information here about nonce. Chapter 4.4 of “Building Web Applications with Golang”

Goals for tomorrow:
– Create mock up screen shots
– Create a login page
– Create a DB connection test page.
– Update https://github.com/LarryBattle/nonce-golang to include demo and documention
– Create a sample unit test
– Create a profile setup page.

Done with day 2

Larry Battle

Larry Battle

I love to program, and discover new tech. Check out my <a href="http://stackoverflow.com/users/527776/larry-battle">stackoverflow</a> and <a href="https://github.com/LarryBattle">github</a> accounts.

More Posts - Website

Follow Me:Add me on XAdd me on LinkedInAdd me on YouTube