Code Monkey home page Code Monkey logo

load_up_sitting's Introduction

Load Up Sitting

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Ruby version: 3.2.1
  • Rails version: 7.0.7
  • Database: PostgreSQL

Installation

  1. Clone the repository: git clone https://github.com/mybuddyandrew/load_up_sitting.git
  2. Navigate to the project directory: cd load_up_sitting
  3. Install the required gems: bundle install
  4. Set up: bin/setup
  5. Seed the database with sample data: rails db:seed
  6. Run the server: bin/dev

Gems and Dependencies

Here is a list of critical gems and dependencies used in the project:

  • pg: PostgreSQL database
  • puma: Web server
  • redis: In-memory data structure store
  • stimulus-rails: Front-end framework
  • tailwindcss-rails: CSS framework
  • turbo-rails: Hotwire turbo for Rails

Pricing Engine

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

How to Run the Test Suite

To execute the test suite, run the following commands:

# Run unit tests
rails test

# Run system tests (feature tests)
rails test:system

Seeding the Database

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.

Future Ideas

  • 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.

load_up_sitting's People

Contributors

mybuddyandrew avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.