grepme / cmput410-project Goto Github PK
View Code? Open in Web Editor NEWThis is our project. WIP.
License: Apache License 2.0
This is our project. WIP.
License: Apache License 2.0
Help wanted with #50
I don't know how this should be implemented see my comments in the pull request.
As an author, I want to feel safe about sharing images and posts with my friends – images should not publicly accessible without authentication.
I can't seem to get anything working from home, so I wrote up a Comment model proposal. I'm sharing it with you all here. My pyCharm crashed twice then wouldn't allow me to save to my Desktop, so I wrote this in notepad. Don't hate me, I probably made mistakes...
from django.db import models
from django.contrib.auth.models import User
from django.contrib.auth.models import Post
class Comment(models.Model):
date = models.DateTimeField(editable=False)
# Not sure how to make a "content" field either text or image
text = models.CharField(max_length=63206, blank=True)
image = models.ImageField(blank=True)
post = models.ForeignKey("Post", editable=False)
inAuthor = models.ForeignKey("User", editable=False)
def __unicode__(self):
return self.date
Excellent 1: Adheres to standards, well designed
Good 1: Adheres to standards somewhat, some awkward parts
Satisfactory 0: Some good parts, some nasty parts
Unsatisfactory 0: Little effort went into documenting and designing the project
I can't seem to get anything working from home, so I wrote up a Friend model proposal. I'm sharing it with you all here. My pyCharm crashed twice then wouldn't allow me to save to my Desktop, so I wrote this in notepad. Don't hate me, I probably made mistakes...
from django.db import models
from django.contrib.auth.models import User
class Friend(models.Model):
# when reqeust was accepted
date = models.DateTimeField(editable=False)
# who followed back
accepter = models.ForeignKey("User", editable=False)
# who started following
requester = models.ForeignKey("User", editable=False)
def __unicode__(self):
return u'%s -> %s' % self.requester, self.accepter)
so that other servers can ask us if person A is friends with list [B, C, D]
Shows up in who person A is following.
Shows up in who is following person B.
Pull it in from GitHub and other servers.
comments.comment: "image": FileFields require an "upload_to" attribute.
Welp, is this what you guys meant by the comments being broken?
See here:
http://sphinx-doc.org
I can't seem to get anything working from home, so I wrote up a Post model proposal. I'm sharing it with you all here. My pyCharm crashed twice then wouldn't allow me to save to my Desktop, so I wrote this in notepad. Don't hate me, I probably made mistakes...
from django.db import models
from django.contrib.auth.models import User
from django.contrib.auth.models import Comment
class Post(models.Model):
private = 1
friend = 2
FOAF = 3
server = 4
public = 5
visibilityChoices = (
(private, 'Private'),
(friend, 'Friend'),
(FOAF, 'Friend of A Friend'),
(server, 'Server'),
(public, 'Public'),
)
#55 characters is (usually) enough to show up in a Google search
title = models.CharField(max_length=55)
date = models.DateTimeField(editable=False)
# Not sure how to make a "content" field either text or image
text = models.CharField(max_length=63206, blank=True)
image = models.ImageField(blank=True)
origin = models.GenericIPAddressField(editable=False)
source = models.GenericIPAddressField(editable=False)
author = models.ForeignKey("User", editable=False)
# Can't store arrays of strings, so have to do this a custom way
# http://cramer.io/2008/08/08/custom-fields-in-django/
# categories = SeperatedValuesField(blank=True)
visibility = models.IntegerField(choices=visibilityChoices)
comments = models.ForeignKey("Comment", blank=True)
def __unicode__(self):
return self.title
Merge what should be merged, delete what should be deleted, etc.
Comment when your branches are gone, after we're all done it'll be pretty :)
Ensure we are able to get a friend from both servers.
Make sure it shows up in my friends list.
if I try profile/Admin it does not working. profile/admin does.
Implement a Abstract Base Class for models.
Force model to implement as_dict() so when we need a JSON version so it is simple and works. See Posts model for example.
I have a branch with the added bool accepted. We need to update tests to account for these.
Excellent 3: Web service coordinates with 1+ other group projects successfully. Most interoperation requirements met.
Good 2: Web service coordinates with 1+ other group projects successfully. Most interoperation requirements met. Some snags.
Satisfactory 1: The basics of coordination are covered. Probably many snags.
Unsatisfactory 0: Coordination doesn’t work or barely works.
We should set up user_profile to no rely on the auth user, otherwise we technically need a auth user for every friend request from another server. Should like the other way if possible, auth user contains profile. Alternatively just use guids...
I can't seem to get anything working from home, so I wrote up a Follow model proposal. I'm sharing it with you all here. My pyCharm crashed twice then wouldn't allow me to save to my Desktop, so I wrote this in notepad. Don't hate me, I probably made mistakes...
from django.db import models
from django.contrib.auth.models import User
class Follow(models.Model):
# when started following
date = models.DateTimeField(editable=False)
# who started following
follower = models.ForeignKey("User", editable=False)
# who was followed
following = models.ForeignKey("User", editable=False)
def __unicode__(self):
return u'%s -> %s' % self.follower, self.following)
What is the difference between all posts and stream they seem to be exactly the same as far as I can tell.
Assuming "When we click on a profile, they send us some info and we display it as a profile":
Make sure we can get the information from the remote server and display it (with option to follow/friend)
Draw some wireframes for the design
Excellent 1: Documented, adheres to requirements to augments them with compatibility
Good 1: Documented, exists, tries to adhere to requirements
Satisfactory 0: Some of the webservice exists
Unsatisfactory 0:
To populate the All-Posts page
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.