Coder Social home page Coder Social logo

cmput410-project's Introduction

Hi, I'm Kyle πŸ‘‹

I'm a software engineer, technical lead, and entrepreneur in the Edmonton area. With over 10 years of professional development and a major player in some of the fastest growing tech companies in Alberta. I'm always hacking away on the next big thing.

πŸ”­ I’m currently working on

πŸ‘¨β€πŸ”§ Projects Done & Maintained

  • https://vred.rip/ - Chrome & Firefox addon that you can use to create easy sharable video links from reddit to Discord with sound πŸ”Š(or other apps) with a preview and ability to play embedded.
  • https://wordle.yeg.dev/ – A Worlde clone for those who need to challenge themselves to more than just 1 word a day πŸ“
  • https://vaccinate.yeg.dev/, vaccination passports for Alberta that builds on top of the vaccine cards, but independently verifiable. In the process of open sourcing it.

πŸ“« How to reach me

https://www.linkedin.com/in/kylerichelhoff/

cmput410-project's People

Contributors

jakebrand avatar morganpatz avatar varsis avatar zturchan avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cmput410-project's Issues

Help with API - Friend

Help wanted with #50

I don't know how this should be implemented see my comments in the pull request.

Fix user_profile for External hosts

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...

Add Follow Model

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)

Add Friend Model

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)

Web Service API & Documentation

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:

Displaying remote server user profiles

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)

Prune Branches

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 :)

Web Service Coordination - With other groups

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.

Implement ABC for Models

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.

Add Comment Model

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

Add post model

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

Design

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

Comments broken on master

comments.comment: "image": FileFields require an "upload_to" attribute.

Welp, is this what you guys meant by the comments being broken?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.