How devukurup/comment-manager works
Project type and purpose
• This is a full-stack comment management system: a React JS single-page frontend bundled via Webpacker, served by a Ruby on Rails backend, persisting data in PostgreSQL, and using ActionCable for real-time updates.
File structure
• Top-level “app/javascript” holds the React code: “packs/application.js” bootstraps “App.jsx,” which imports components under “src/components.”
• “app/controllers” serves JSON endpoints (CommentsController, UsersController) and the home page.
• “app/channels” defines ActionCable channels for real-time comment broadcasts.
• “app/models” defines ActiveRecord models (User, Comment).
• “config/routes.rb” maps API and WebSocket endpoints.
• “config/webpack” and “babel.config.js” configure the JS build; “tailwind.config.js” configures styles.
• Standard Rails directories for jobs, mailers, views, and assets.
README for additional insights
• The stack is React, Rails, Tailwind CSS, PostgreSQL.
• Features: create/edit/delete/list comments with user association and real-time updates via WebSockets.