Git Product home page Git Product logo

databases_project's Introduction

Databases_Project Cooking Contest

This is the github repo for 6th semester project in databases. The main goal is the development of a functional Database for a hypothetical Cooking Contest.

All Query Questions are in File Questions.

The ER Diagram can be found as an Image ER Diagram

The Relational Schema can bd found as an Image Relational Schema

To download our project (Three Options):

  1. Download a .zip archive from https://github.com/NicholasAgg/Databases_Project/ (Recommended since changes are disallowed anyways) and extract it into your desired directory.
  2. Download Github Desktop login with your credentials and clone the repo into your desired Folder.
  3. Install Github CLI as described here Github CLI Instructions, then login with your credntials (Command: gh auth login),and then run gh repo clone NicholasAgg/Databases_Project, to clone the repo into your desired directory.

To set up the database:

  1. Make sure you are running mysql version >= 8.0.
  2. Make sure you have python (version >= 3.10) installed.
  3. Install via pip (pip install mysql-connector-python==8.0.28) mysqlconnector for python.
  4. Run the DDL_Script.sql in mysql.
  5. Run the DML_SCRIPT.sql in mysql.
  6. In powershell run $Env:MYSQL_KEY = "your_password" as the root password for mysql connection. Example : $Env:MYSQL_KEY = "123456789" (Required for Image Loading and Episode Generation Script to work.Make sure you are in the directory the repo is stored in!)
  7. Run python .\Image_Loading.py (To load the images to the database.)
  8. If you want to generate additional episodes run python .\One_Episode_Gen.py,to generate one episode at a time. (mysqlconnector mentioned above is a prerequisite).

Notes: Recipes.json has dummy data for the recipes. Chefs_dummy_data.json has dummy data for the chefs. In Images folder lie all the images used in the database.
Files : dummy_data.ipynb,Episode_Gen.py and Random_Queries.sql are present just for the sake of completeness.They are not mandatory for the installation,they were just useful during the creation of the DML Script and process of writing the Queries.

Thank you.

databases_project's People

Contributors

nicholasagg avatar nick-arg avatar faidonatos avatar

Stargazers

 avatar

Watchers

 avatar

databases_project's Issues

Things to do.

  1. Create the indexes.
  2. Make user configs. (Done)
  3. Add Images to all entitites (Done)
  4. Finish All Questions. (Done)
  5. Write the report!

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.