Acme Corporation, the world’s leading manufacturer of explosives, requires an employee registry to manage its workforce efficiently. This registry is developed using Ruby on Rails with PostgreSQL as the database. The project consists of two primary modules: Departments and Employees, along with additional features such as authentication, invoicing, and GraphQL support.
- Install Ruby 3.0.6
- Install Rails 7.1.5.1
- Set up PostgreSQL as the database
- Redis (for Sidekiq background jobs)
- Clone the repository and install dependencies:
git clone <repo_url>
bundle install
- Setup the database:
rails db:create db:migrate db:seed
- Start the Rails server:
rails server
- Start Sidekiq (for background jobs):
bundle exec sidekiq
- Email:
[email protected]
- password:
123456
- Permission: Full access (except creating new employee)
- Email:
[email protected]
- password:
123456
- Permissions: View profile only
- RSpec is used for testing models and features.
- Run tests:
bundle exec rspec