Skip to content

Conversation

skyv26
Copy link
Owner

@skyv26 skyv26 commented Apr 18, 2025

This pull request introduces the foundational implementation of a role-based Rails 7+ application built to manage doctor and receptionist workflows. The app fulfills the core requirements while enhancing the functionality beyond expectations.


Core Features Implemented:

  • 🔐 Single Login Page for both doctors and receptionists using Devise
  • 🧾 Receptionist Dashboard: Full CRUD operations for patient records
  • 🩺 Doctor Dashboard: View all registered patients with a chart displaying "Patients vs Days" using Chartkick
  • 🧠 Role-Based Access Control using Cancancan
  • 🧰 Backend-only with Rails 7+ and PostgreSQL

💎 Extra Enhancements:

  • 🎨 Landing Page for better user experience and branding
  • 🐳 Dockerized Environment for seamless setup and deployment
  • 🧑‍⚕️ Roles: superadmin, admin, doctor, receptionist
  • 📊 Chart implementation with Chartkick for graphical insights
  • ⚡️ Hot-reloading with LiveReload
  • 💅 Fully responsive UI using TailwindCSS
  • 🎭 Conditional Rendering for pages and menus based on roles
  • 🔑 Secure authentication & authorization
  • 🔄 Patient-Doctor model relations added

🧪 Test Instructions:

# Clone repo
git clone https://github.com/skyv26/effective-octo-robot.git
cd effective-octo-robot

# Start Docker containers
docker-compose up --build

# App runs at:
http://localhost:3000

📌 Notes:

  • Only PostgreSQL is used as per instructions
  • Authentication handled via Devise
  • Authorization handled via Cancancan
  • Stimulus + Turbo Streams power the interactivity

Let me know if you want a GitHub Actions workflow or seed file preview added too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant