Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed A Social Network with Flask!
You have completed A Social Network with Flask!
Preview
Before we start building anything, we should go over what our project is. Let's look at the primary features we want, why, and then we can start to figure out how to build them.
pip install peewee
pip install flask
Documentation
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[MUSIC]
0:00
I hope you're ready, cuz this is going to
be our biggest project to date.
0:04
Are you ready?
0:07
Okay, then let me tell you about it.
0:08
We're gonna use flask, and peewee, and
some other packages,
0:10
to build a small social network.
0:13
Now, this isn't going to be Twitter or
Facebook scale of course, and
0:15
we'll still need a lot of tweaks and
improvements once we're done.
0:18
But, It'll show all sorts of things that
social networks require.
0:21
What we doing, user registration, sign
ups, and user authentication, or log ins.
0:24
Cryptographically hashing passwords with a
super strong decrypt library, and
0:29
we'll add in the ability to follow and
unfollow people so
0:33
you can see or not see their status
updates.
0:36
If that sounds like a lot, well, it is.
0:38
But I know we're up for the challenge.
0:41
The idea for this app is this.
0:43
Imagine you work for a company that
doesn't have permanent teams.
0:45
One project might involve these three
people over here, and
0:49
the next project involves those five
people back in the corner.
0:51
You, however, happen to be on both teams.
0:54
This company also doesn't like email,
0:58
which is a good thing, but you still need
a way to keep up with people.
0:59
Your boss comes to you and wants a way for
team to keep up with each other,
1:03
so you decide to build a small social app.
1:06
Where people can post updates and
1:08
just generally keep everyone else up to
date on what's going on in the project.
1:09
[SOUND] I suggest doing this entire course
in workspaces.
1:13
But if you want to follow along at home,
you can go ahead and
1:17
install both flask and peewee with pip.
1:20
I'd also suggest using a virtualenv.
1:22
Since we'll be installing a lot of
packages, and
1:24
you'll want to keep them tidy and
together.
1:26
If you haven't taken the previous flask
course, or
1:28
the databases course, now would be a good
time to hop over to them.
1:30
I've listed them both as requirements for
this course.
1:33
All right, our mission is clear.
1:36
Let's build it.
1:38
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up