How nathanlee5163/loopify works
Loopify is a social platform whose main workflow is a user interacting through the client, sending commands to the server, and receiving results from command handling backed by domain objects and persistent files. The server delegates each connection to a client handler; the README describes the supported account, friend/block, profile, and post interactions. The shown source supports the handler’s database and domain dependencies, plus file-backed user relationships and post comments. Unsampled modules and some persistence wiring are represented only where documented or indexed.
Main entry points: ClientHandler.java Command handler · Database.java File database · User.java User accounts · TerminalClient.java Desktop client
Components 24
Client access
- Desktop client
src/TerminalClient.java - Loopify entry
src/Loopify.java - Client contract
src/TerminalClientInterface.java
Request handling
- Socket server
src/LoopifyServer.java - Server contract
src/LoopifyServerInterface.java - Command handler
src/ClientHandler.java - Handler contract
src/ClientHandlerInterface.java
Social domain
- User accounts
src/User.java - User contract
src/UserInterface.java - Posts and comments
src/Post.java - Post contract
src/PostInterface.java - Search contract
src/SearchInterface.java - Input validation error
src/InvalidInputException.java - Missing user error
src/UserNotFoundException.java - Duplicate username error
src/UsernameTakenException.java - Missing post error
src/PostNotFoundException.java
Persistence
- File database
src/Database.java - Database contract
src/DatabaseInterface.java - User records
src/Users.txt - Post records
src/Posts.txt - Friend and block records
Resources - Comment records
Resources - Online users
Resources/Online.txt
Other components
- User
Connections 12
- User → Desktop client: uses
README.md - Desktop client → Socket server: sends requests
README.md - Socket server → Command handler: delegates connections
README.md - Command handler → File database: queries and updates
src/ClientHandler.java - Command handler → User accounts: handles accounts
src/ClientHandler.java - Command handler → Posts and comments: handles posts
src/ClientHandler.java - File database → User records: persists users
README.md - File database → Post records: persists posts
README.md - User accounts → File database: looks up users
src/User.java - User accounts → Friend and block records: reads and writes
src/User.java - Posts and comments → Comment records: stores comments
src/Post.java - Command handler → Online users: reads online users
src/ClientHandler.java