rlguarino / lifeinvader Goto Github PK
View Code? Open in Web Editor NEWA social network for people with lives.
License: Other
A social network for people with lives.
License: Other
URL
/:user/friends
If the current user is a friend of the requested user, then the page will display the full friend list of the requested user.
If the current user is not a friend of the requested user, then the page will redirect to the profile page of the user. (Where the current user will be prompted to request for friendship)
Remove the hibernate usage in the login implementation
If any of the jdbc operations throw an erros findByEmail will not close the connection.
Create the following models for Hibernate to persist to the database.
User(id, Name, DOB, Address, Email, passwdHash);
Group(id, Name, GroupSize);
Wall(Wall_ID, User_ID, Group_ID);
Post(Id, content, TimeStamp, Type, user);
Request(sender, target, isGroup);
UserRelationship(Person1_ID, Person2_ID);
Member(GroupID, PersonID);
There needs to be a script or a command that we can run to populate the database with test data.
To easier be able to search through user data, we should store the id of the user in the session variable rather than the email of the user.
Then we could use session.get("id") as the primary search key, streamlining the process of finding the currently logged in users while handling web request.
Don't store the password in the database, store the hash.
Create the design for the models.
URL
/:user/wall
View the users full wall.
If the current logged on user is a friend of the request user, then display the whole users wall.
If the current logged on user is not a friend then direct them to the profile page of the requested user.
Should we keep this repository as a private repo? If we want to keep the repo private I would need to create a new account to host the code and migrate it there, to freee up one of my private repo slots.
If we don't keep it private, we should choose a License, I doubt anyone will look at or use the code, but just in case.
/:user/about
Displays user about page. Containing:
Name
DOB
Address
Email
This should check to make sure that the currently logged on user is a friend of :user
We need to insure that the Userd.email is unique in the user.email column. But It should not be the primary, in case a user would like to change their email address. Therefor we need to check every time a userd.email is inserted or updated, that no other user exists with the same email.
Add a isVisible field to the User model so when we delete a user, all we need to do is set isVisible to false, rather than true.
Create the design for the controller interface.
Write the database initialization scripts.
http://stackoverflow.com/a/24193846
We need to call Connection.close() on all of the connection object that we create.
"Register a new user" feature needs to be implemented.
I went through and fixed some syntax and compile errors. Should be ready to merge into master. After someone looks through it.
Pages like / should direct logged in users to /home when they visit them.
Pages that should do this:
/
/register
/login
Users need to be able to request the friendship of people who are not already in their friends list.
The requested user must be notified of the pending request.
The requested user must be able to accept or reject the request.
User Settings page where you can view and change your profile information as well as "delete" your user.
URL
/:user/
Display the profile page of a user.
The profile page will include the user's name and Email.
If the logged on user is a friend of the requested user, the page will display the requested users friends list, as well as the request users wall.
If the logged on user is not a friend of the requested user, then the page will display a form to request the user as a friend.
The database creation scripts should be somewhere else other than the root of the project.
Maybe inside a /contrib directory?
Most projects have a /contrib directory that hold developer tools and scripts.
Maybe the database scripts should be in a directory /contrib/db/
For example /contrib/db/create_all.db and /contrib/db/example_insert.db
Display a users friends list and the friends in the list.
Display a wall containing all the post associated with the wall.
Actually do it this time...
Display user's information.
Decide how to layout the urls and what each action should do. We should have detailed designs for exactly what should be the outcome of each operation.
Create the db schema, and scripts for testing.
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.