These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Ruby version:
3.2.1
- Rails version:
7.0.7
- Database:
PostgreSQL
- Clone the repository:
git clone https://github.com/mybuddyandrew/load_up_sitting.git
- Navigate to the project directory:
cd load_up_sitting
- Install the required gems:
bundle install
- Set up:
bin/setup
- Seed the database with sample data:
rails db:seed
- Run the server:
bin/dev
Here is a list of critical gems and dependencies used in the project:
pg
: PostgreSQL databasepuma
: Web serverredis
: In-memory data structure storestimulus-rails
: Front-end frameworktailwindcss-rails
: CSS frameworkturbo-rails
: Hotwire turbo for Rails
The application includes a pricing engine that calculates the cost of service based on the type of animal and hours requested. The engine uses the following logic:
- Base charge: $20
- Additional charge per hour for dogs: $10
- Additional charge per hour for cats: $5
To execute the test suite, run the following commands:
# Run unit tests
rails test
# Run system tests (feature tests)
rails test:system
You can populate the database with sample data by running the seed file:
rails db:seed
The seed file contains predefined bookings and other data to assist with development and testing.
- User Management and Roles: Implementation of a robust user management system with different roles and permissions.
- Landing Page: Design and development of an attractive and informative landing page for the application.
- Mailers: Integration of mailers to notify users about bookings, updates, and other relevant information.