Giter VIP home page Giter VIP logo

rescue-shelter-cpp's Introduction

Rescue Shelter

A console-driven application that allows users to interact with a rescue shelter.

The enhanced version of the application with a graphical user interface (GUI) built using Qt. This version also uses PostgreSQL as the database management system.

Overview

This is a software application designed to assist in managing the adoption process of animals in a shelter. It offers functionalities in two modes: administrator and user. Administrators can manage the animal database, while users can browse, select, and adopt animals.

Technologies

  • C++ 20
  • Qt 6.4.2
  • PostgreSQL 15.2

Features

  • Administrator Mode:
    • Manage database: Add, delete, and update information.
    • View all animals in the shelter.
  • User Mode:
    • Browse animals one by one with options to adopt.
    • Filter animals by age or other criteria.
    • View and manage the personal adoption list.
  • Additional Features:
    • Use STL algorithms and C++11's ranged-based for loop.
    • Error handling using custom exceptions.
    • Adoption list saved in CSV or HTML format.
    • UML class diagram of the application.
    • Sort function using Comparator class template.
    • GUI without Qt Designer, including a gradient effect.
    • Multiple undo and redo functionality.
    • Qt View/Model components and custom Qt delegates.
    • Database-backed repository (PostgreSQL).
    • Custom SQL queries and prepared statements to prevent SQL injection.

See the console version's REQUIREMENTS.md file and the Qt version's REQUIREMENTS.md file for more details.

Getting Started

Prerequisites

  • Visual Studio 2022 with the Desktop development with C++ workload
  • Qt 6.4.2, alongside PostgreSQL 15.2

Installation

  1. Clone the repository.

  2. Restore the database using the main.sql file found in the PostgreSQL directory.

  3. Create a Config.h file using the template and update the database connection details.

  4. Build and run the application.

Usage

  1. Choose the desired mode at the start of the application: admin or user.

  2. Follow the on-screen instructions to manage or adopt animals.

  3. Use the Undo and Redo buttons to revert or redo changes.

  4. View and manage the personal Adoption List in the designated tab.

Preview

Admin mode

Admin Mode Preview

User Mode

User Mode Preview

Adoption List

Adoption List Preview

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

rescue-shelter-cpp's People

Contributors

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