https://github.com/mohamedsabry0/vet-clinic
https://github.com/mohamedsabry0/vet-clinic
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mohamedsabry0/vet-clinic
- Owner: mohamedSabry0
- License: other
- Created: 2023-06-15T15:26:54.000Z (about 2 years ago)
- Default Branch: dev
- Last Pushed: 2023-06-21T09:02:20.000Z (almost 2 years ago)
- Last Synced: 2025-01-13T01:25:42.853Z (5 months ago)
- Size: 140 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vet Clinic
## 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
- [Vet Clinic](#vet-clinic)
- [Getting Started](#getting-started)
- [📗 Table of Contents](#-table-of-contents)
- [📖 \[Vet Clinic\] ](#-vet-clinic-)
- [🛠 Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [💻 Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Download and install PostgreSQL:](#download-and-install-postgresql)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [👥 Author ](#-author-)
- [🔭 Future Features ](#-future-features-)
- [🤝 Contributing ](#-contributing-)
- [⭐️ Show your support ](#️-show-your-support-)
- [🙏 Acknowledgments ](#-acknowledgments-)
- [📝 License ](#-license-)The **Vet Clinic** has implemented a PostgreSQL-based database, which serves as a comprehensive and efficient system for managing various aspects of veterinary care. This database consists of multiple interconnected tables, specifically designed to store information related to owners, veterinarians, visits, and other relevant data. With this database, the vet clinic can effectively manage and organize important information for the care and treatment of animals.
Database
- **[Database created based on real life example]**
- **[Database populated with sample data]**
- **[Queries to retrieve data from the database that simulate real life]**
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
PostgreSQL installed on your local machine.
#### Download and install PostgreSQL:
You can download and install the latest version of PostgreSQL from the [official website](https://www.postgresql.org/download/). Follow the installation instructions for your operating system.
### Setup
Clone this repository to your desired folder:
```sh
cd my-folder
git clone [email protected]:mohamedSabry0/vet-clinic.git
```
### Install
- After installing PostgreSQL, create a new database:
```sh
createdb vet_clinic
```
- Then run the following command to create the tables:
```sh
psql -d vet_clinic -f schema.sql
```
- Finally, populate the tables with sample data:
```sh
psql -d vet_clinic -f data.sql
```
### Usage
To run the project, execute the following command:
```sh
psql -d vet_clinic -f queries.sql
```
- You can also run the queries in the queries.sql file in the PostgreSQL shell.
- Feel free to add your own queries to the queries.sql file and test them.
👤 **Mohamed Sabry**
- GitHub: [@mohamedSabry0](https://github.com/mohamedSabry0)
- Twitter: [@mohsmh0](https://twitter.com/mohsmh0)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/mohamed-sabry0/)
- [ ] **[Deploy a live demo]**
- [ ] **[Include more real world scenarios and practices]**
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/mohamedSabry0/vet-clinic/issues).
If you like this project it would be truly appreciated if you give it a ⭐️.
I am grateful for these resources as they were a reason that I obtained a glimpse of their abundance of knowledge:
- [Microverse](https://www.microverse.org/)
- [tutorialspoint postgreSQL](https://www.tutorialspoint.com/postgresql/)
- [PostgreSQL Documentation](https://www.postgresql.org/docs/current/index.html)
- [PostgreSQL Tutorial](https://www.postgresqltutorial.com/)
- [PostgreSQL Exercises](https://pgexercises.com/)
This project is [MIT](./LICENSE) licensed.