Giter Site home page Giter Site logo

emmahyde / grouper Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 590 KB

GeoCities meets the modern era.

Home Page: https://grouper.lol

License: MIT License

Dockerfile 3.08% Ruby 73.45% JavaScript 1.79% CSS 1.15% HTML 19.81% Shell 0.61% Procfile 0.10%

grouper's People

Contributors

emmahyde avatar shaka-n avatar

Stargazers

 avatar

Watchers

 avatar

grouper's Issues

Support Mutual Friendships

Currently, when a Friendship is made with user: user_A, friend: user_B, no reciprocal record is made in order to reflect the mutual nature of friendships in the User associations (if I am a friend to someone, they are a friend to me).

Acceptance Criteria

  • friend "requests" are represented by the Friendship table, and are reflected by a single Friendship record
  • Once a request is "accepted", a reflecting Friendship record is made against the request, i.e.
    Friendship(user: user_B, friend: user_A)
  • Therefore, a mutual friendship is qualified by there being 2 Friendship records that reflect each other, where each User is the base :user in one record, and the :friend association in another.
  • In other words, a mutual friendship is qualified by both associated Users having a "request" to the other through the medium of the Friendship table.

Thoughts

another option is that Friendships have some sort of status that indicates if it has been accepted, but I don't love this solution because the Friendship table will turn into the wild west if there is no rhyme or reason to why a user is sometimes the base :user and sometime the associated :friend in any given Friendship. This also means we have to do a lot of funky stuff in order to get the friends for a given user, since they could be in either column. It will additionally make SQL queries for finding/evaluating mutual friendships more demanding.

yet another option is that we use an entirely different data model to represent FriendshipRequests. This allows us to be more descriptive and explicit at the data model layer and in our naming conventions about our intended behavior and usage, but will similarly lead to confusion around the Friendship data model itself.

Stretch Goal: Chat

This will probably be its own repo, but im adding it here so as not to forget.

Handles

We want people to have fun names, but also unique identifying names.

Main Feed Page

Need a main feed page!

  • Posts in chronological order
  • nav menu
  • "create post" form

Dockerize

I need docker practice, so why not baby. Get this thing in a Docker container.

Profile Page

Need a profile page for users!

There are 2 obvious patterns for profile CRUD. The first would be to direct new users to create their profiles when they first log in or register. Filling out the form would optional, either via a "skip" button or by just letting them submit the empty form. This feels like the more professional/logical route.

The second option would be to direct users to the main feed on first login. If they want to edit their profile page, they can by visiting their own profile and clicking an "edit" button. This feels a bit more slippery, and not exactly intuitive, but I'm not certain that is a bad thing...

In the interest of time, I'm going with the second. It's faster to do and I can always add that other flow later.

Elements

  • About/Description
  • Slug
  • Posts History
  • Friends List
  • Follow/Friend/Subscribe button
  • Edit button (should not appear if the current user does not match the profile)
  • Tests

Stretch

  • Profile picture
    • "upload pfp" form
    • See: Issue #25
  • Images/Media

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.