An open API service indexing awesome lists of open source software.

https://github.com/hfg43/vet_clinic_db


https://github.com/hfg43/vet_clinic_db

database postgresql

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          




logo

README

# πŸ“— Table of Contents

- [πŸ“– About the Project](#about-project)
- [πŸ›  Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [πŸš€ Live Demo](#live-demo)
- [πŸ’» Getting Started](#getting-started)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#triangular_flag_on_post-deployment)
- [πŸ‘₯ Authors](#authors)
- [πŸ”­ Future Features](#future-features)
- [🀝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [πŸ™ Acknowledgements](#acknowledgements)
- [πŸ“ License](#license)

# πŸ“– Vet Clinic

Vet Clinic is a project where I put in practice the use of PGSQL, by generating an animals database.

**[Vet Clinic]** is a first project usign PGSQL to practice creating Tables, making queries for individual and multiple tables, and to generate a performance audit.

## πŸ›  Built With

### Tech Stack

Database

### Key Features

- **[Use Gitflow]**
- **[Create a Relational dataBase using PostgreSQL]**
- **[Create a Table and insert data]**
- **[Make different SQL queries]**
- **[Use Transaction to ensure safe inserts, updates & deletions]**
- **[Use Agregation for SQL queries]**
- **[Make queries for multiple tables]**
- **[Add Join table for visits]**
- **[Add many to many relationships]**
- **[Use nested queries]**
- **[Performance Audite]**

(back to top)

## πŸ’» Getting Started

This repository includes files with plain SQL that can be used to recreate a database.

### Prerequisites

In order to run this project you need to have PostgreSQL installed:

Linux:
`sudo apt-get install postgresql`

Windows:
`https://www.postgresql.org/download/windows/`
### Setup

Clone this repository to your desired folder:

cd my-folder
git clone https://github.com/HFG43/Vet_clinic_db

### Usage

To run the project, execute the following command:

```sh
CREATE DATABASE vet_clinic;
```
After creating the DataBase use [schema.sql](./schema.sql) to create animals table.

```sh
CREATE TABLE table_name(
column1 datatype,
columnN datatype
);
```
Use [data.sql](./data.sql) to populate tables with sample data.

```sh
INSERT INTO animals VALUES (column1, ...columnN);
```

Check [queries.sql](./queries.sql) for examples of queries that can be run on a newly created database.

```sh
SELECT [define column(n) or use * to select all] FROM animals WHERE [CONDITION];
```

To run tests, run the following command:

No tests available yet.

### Deployment

No Deployment available

(back to top)

## πŸ‘₯ Authors

πŸ‘€ **HernΓ‘n GΓΌemes**

- GitHub: [@githubhandle](https://github.com/HFG43)
- Twitter: [@twitterhandle](https://twitter.com/HFG_43)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/hern%C3%A1n-g%C3%BCemes-a440591b/)

πŸ‘€ **Andrea Manuel**

- GitHub: [@AndreaM2429](https://github.com/AndreaM2429)
- Twitter: [@AndreaManuelOr1](https://twitter.com/AndreaManuelOr1)
- LinkedIn: [Andrea Manuel](https://www.linkedin.com/in/andreamanuel24/)

(back to top)

## πŸ”­ Future Features

- [ ] **[Generate a performance audit]**

(back to top)

## 🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](../../issues/).

(back to top)

## ⭐️ Show your support

If you like this project you could clone the repo and work with it or do the changes in a new branch. Also you could let a message with your thoughts.

(back to top)

## πŸ™ Acknowledgments

I would like to thank Microverse for providing the necessary resources for this project.

(back to top)

## πŸ“ License

This project is [MIT](./LICENSE) licensed.

(back to top)