Run our app using 'node app.js'. This will open a server on port 3000.
Additions that we made for this project:
- Database
- 326.sqlite: created and filled db for users, groups, tweets, followers
Additions that we made for this project:
-
Ajax
- Follow User button no longer refreshes page
- Join Group button no longer refreshes page
- Post Tweet button no longer refreshes page
- Signup will validate username and password without refreshing
-
Websockets
- Tweet feed is immediately updated with new tweets
- /mentions and /connect pages will immediately update with new information
- Profile pages update immediately
- /group will immediately update with any new tweets
-
Other Additions
- Hashtags
- lib/util/util.js: updated to look for tweets that include a hashtag
- Search
- routes/search.js: new route for search page that gets all tweets from the query string
- lib/tweets/tweetdb.js: added getTweetsContaining function that is used for the search
- Hashtags
-
Relevant Files
- lib/sockets/sockets.js for server side sockets
- public/javascript/*.js for client side sockets and ajax
Additions that we made for this project:
-
Sessions
- app.js: cleaned up sessions coding completed in previous project
-
Mentions
- lib/util/util.js: created mention link to profiles
- public/stylesheets/style.css: added styling to the mentions
- routes/connect.js: shows mentions on connect page
-
Interactions
- lib/util/util.js: added functionality to get all messages for a given user to be put in the interactions timeline
-
Groups
- lib/groups/groupdb.js: functionality for creating groups, checking if a user is a member, getting members of a group, and adding members
- routes/profile.js: added route for group
- views/group_profile.ejs: html for group profiles
-
Functional Spec
- added TwitterFunctionalSpecification.pdb to public folder, with extensions details and scenario added
-
Documentation
- added documentation to missing areas and new additions