Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/graujavier/vet-clinic
https://github.com/graujavier/vet-clinic
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/graujavier/vet-clinic
- Owner: grauJavier
- Created: 2023-08-15T06:04:57.000Z (over 1 year ago)
- Default Branch: dev
- Last Pushed: 2023-08-22T22:20:00.000Z (about 1 year ago)
- Last Synced: 2024-05-17T15:42:34.671Z (6 months ago)
- Language: PLpgSQL
- Size: 154 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Vet-Clinic Database Project
Welcome to this project, where you'll employ a relational database to establish the foundational data framework for a veterinary clinic. Your tasks will be designing a table dedicated to housing details about various animals, populating it with relevant data, and executing queries to retrieve information.## Before Getting Started
This repository includes files with plain SQL that can be used to recreate a database:
- Use [schema.sql](./schema.sql) to create all tables.
- Use [data.sql](./data.sql) to populate tables with sample data.
- Check [queries.sql](./queries.sql) for examples of queries that can be run on a newly created database. **Important note: this file might include queries that make changes in the database (e.g., remove records). Use them responsibly!**# π Table of Contents
- [π About the Project](#about-project)
- [π Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [π» Getting Started](#getting-started)
- [Setup](#setup)
- [Usage](#usage)
- [π₯ Authors](#authors)
- [π Future Features](#future-features)
- [π€ Contributing](#contributing)
- [βοΈ Show your support](#support)
- [β FAQ](#faq)
- [π License](#license)Welcome to this project where we'll build a special database for a vet clinic. This database will hold information about different animals, like their names, when they were born, if they tried to escape, if they've been neutered, how heavy they are, and what kind of animal they are. We'll use a language called SQL to set up the database, put in some example info, and ask questions to get useful answers.
## π Built With
The project is built using SQL for database management.
Getting Started
Follow these steps to understand and work on the project:Database
- **Database Management:** Create and manage a relational database using SQL commands.
- **Data Manipulation:** Add, update, and remove data of the database using SQL statements.
- **Querying Data:** Utilize SQL queries to extract data from the database.
1. Clone this repository to your local machine:
```bash
git clone https://github.com/grauJavier/vet-clinic
```
2. Set up a PostgreSQL database named `vet_clinic`.
### Database Structure
The `schema.sql` file includes SQL commands to create the `animals` table with the following columns:
- `id`: A unique identifier for each animal.
- `name`: The name of the animal.
- `date_of_birth`: The birthdate of the animal.
- `escape_attempts`: The number of escape attempts made by the animal.
- `neutered`: A boolean indicating if the animal is neutered.
- `weight_kg`: The weight of the animal in kilograms.
- `species`: The species of the animal.
You can execute the `schema.sql` file to create the table structure by running:
```bash
psql -d vet_clinic -a -f schema.sql
```
Before you do anything, make sure you have PostgreSQL set up on your computer. If that's good to go, then you're ready to use the command.
Customize the explanations and the way things are organized in the columns to match what your project needs.
Remember, the design and setup of the database we're giving you fit what your project wants. But you can change things around if you have to.
## π Usage
The data.sql file has special instructions written in SQL. These instructions make pretend information go into the animals table. This way, the table gets filled up with details about lots of animals.
The queries.sql file has more SQL instructions. These help answer different questions about the animal info. The questions are about things like picking certain animals using rules, getting specific details, and doing math with all the info added up.
When you run these instructions and get answers, you can snap pictures of the results to show what you did.
π€ **Javier Grau**
- GitHub: [@grauJavier](https://github.com/grauJavier)
- Twitter: [@jgrauchile](https://twitter.com/jgrauchile)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/javiergrau)
π€ **Lawrence Muema Kioko**
- GitHub: [@githubhandle](https://github.com/Kidd254)
- Twitter: [@twitterhandle](https://twitter.com/lawrenc98789206)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/lawrence-muema-kioko)
π€ **Manuel SΓ‘nchez**
- GitHub: [Luffytaro22](https://github.com/Luffytaro22)
- LinkedIn: [Manuel SΓ‘nchez](https://www.linkedin.com/in/manuel-alejandro-sanchez-sierra-4b358b14a/)
- **User Login:** Make a way for users to log in and do things based on what they're allowed to do.
- **Setting Up Appointments:** Add something so users can set up appointments for animals. Like when they need to see the vet, get shots, or have an operation.
We welcome contributions to enhance AirMetrics and expand its capabilities. To contribute:
1. Fork the repository.
2. Create a new branch for your feature: `git checkout -b feature-new-feature`.
3. Commit your changes: `git commit -m 'Add new feature'`.
4. Push to the branch: `git push origin feature-new-feature`.
5. Open a pull request detailing your changes.
Let's work together to provide valuable air quality information to the people of Chile!
Also issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/grauJavier/vet-clinic/issues).
If you like this project and know someone who might find it helpful, please share it.
Or give it a **star** βοΈ
I want to give a big thanks to Microverse and everyone I've been working with here. They let me be part of this project, and I'm really grateful.
- **How do I get the PostgreSQL database ready for this project?**
- Copy everything from this project onto your computer.
- Make a new PostgreSQL database and call it "vet_clinic".
- Do all the things written in the "schema.sql" file to set up the table like we need it.
- Put pretend info into the database using the stuff in the "data.sql" file.
- **What's the way to use the instructions in the "queries.sql" file?**
- To use the instructions in the "queries.sql" file, you can pick a tool like psql or pgAdmin. They work for talking to PostgreSQL.
- Connect your tool to the "vet_clinic" database.
- Do the instructions from the file. This gets you the info you want from the database.
This project is [MIT](MIT.md) licensed.