building a reddit clone from the ground up

12
Building a Reddit Clone from the Ground Up Shahid Chohan [email protected]

Upload: ucla-association-of-computing-machinery

Post on 17-Jul-2015

503 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Building a Reddit Clone from the Ground Up

Building a Reddit Clone

from the Ground UpShahid Chohan

[email protected]

Page 2: Building a Reddit Clone from the Ground Up

Agenda

• Food

• Intro to web apps

• Overview of Flask

• Code

• Questions

• Special questions

Page 3: Building a Reddit Clone from the Ground Up

Web App Basics - MVC

Page 4: Building a Reddit Clone from the Ground Up
Page 5: Building a Reddit Clone from the Ground Up

Web App Basics - HTTP

• HTTP GET - retrieve a specified resource

• HTTP POST - submit data to be processed by a

specified resource

• e.g Pulling up FB newsfeed vs posting a status

Page 6: Building a Reddit Clone from the Ground Up

Why Flask?

• Open source micro-framework

• Super easy to use

Page 7: Building a Reddit Clone from the Ground Up

But what about {{framework}}

• Very little magic with Flask

• Bare bones

• Add in plugins as-needed

• There is a time and place for Django, RoR, etc.

Page 8: Building a Reddit Clone from the Ground Up

Flask, what is it good for?

• Beginners

• Prototyping a web app

• Building a backend API

• **Learning how web frameworks work**

Page 9: Building a Reddit Clone from the Ground Up

Reddit Clone Features

• Posts

• Upvotes/Downvotes

• Subreddits

• Comment Threads

Page 10: Building a Reddit Clone from the Ground Up

How to follow along

• https://github.com/uclaacm/teach_reddit_clone_flask

• Recording + screencast will be up soon after

• Best bet is to watch and ask questions

Page 11: Building a Reddit Clone from the Ground Up

Useful Links

• http://blog.miguelgrinberg.com/post/the-flask-mega-

tutorial-part-i-hello-world

• https://www.digitalocean.com/community/tutorials/ho

w-to-structure-large-flask-applications

Page 12: Building a Reddit Clone from the Ground Up

Questions?