A comprehensive Ruby on Rails application for managing users, records, permissions, circles, and branches with role-based access control.
- User Management: Create, edit, delete, suspend, and activate users
- Role-Based Access Control: Admin, Circle Admin, Maker, and Checker roles
- Record Management: Create and manage records with verification workflow
- Permission System: Fine-grained permissions for users and records
- Circle & Branch Management: Organize users and records by circles and branches
- Bootstrap UI: Modern, responsive interface
- Docker
- Docker Compose
- Clone this repository
- Navigate to the project directory
- Build and start the containers:
docker compose build
docker compose up -d- Create and setup the database:
docker compose run web rails db:create db:migrate db:seed- Access the application at
http://localhost:3000
- Admin:
admin@example.com/password123 - Circle Admin:
circle_admin@example.com/password123 - Maker:
maker@example.com/password123 - Checker:
checker@example.com/password123
- Full system access
- Manage all users, records, permissions, circles, and branches
- View system-wide statistics
- Manage branches within their assigned circle
- View circle-level records and statistics
- Create records with documents
- Upload and manage their own records
- Cannot verify records
- Verify records created by makers
- Object to records with reasons
- View unverified records in their branch
To run Rails commands:
docker compose run web rails console
docker compose run web rails db:migrateTo view logs:
docker compose logs -f webapp/models/- ActiveRecord modelsapp/controllers/- Controllers for handling requestsapp/views/- ERB templates with Bootstrap stylingdb/migrate/- Database migrationsconfig/routes.rb- Application routes
MIT