{"id":25387928,"url":"https://github.com/karshprime/uni-flightdbms","last_synced_at":"2026-01-20T09:02:03.134Z","repository":{"id":287069226,"uuid":"730138762","full_name":"karshPrime/uni-flightDBMS","owner":"karshPrime","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-11T09:39:22.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T20:44:11.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karshPrime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-11T09:39:19.000Z","updated_at":"2023-12-11T09:39:33.000Z","dependencies_parsed_at":"2025-04-09T20:31:21.799Z","dependency_job_id":"4df2ab9f-4f03-4acf-8d2d-9cc4513641a4","html_url":"https://github.com/karshPrime/uni-flightDBMS","commit_stats":null,"previous_names":["karshprime/uni-flightdbms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karshPrime/uni-flightDBMS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2Funi-flightDBMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2Funi-flightDBMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2Funi-flightDBMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2Funi-flightDBMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karshPrime","download_url":"https://codeload.github.com/karshPrime/uni-flightDBMS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2Funi-flightDBMS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28599833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T08:51:33.170Z","status":"ssl_error","status_checked_at":"2026-01-20T08:51:10.855Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-15T12:36:06.033Z","updated_at":"2026-01-20T09:02:03.113Z","avatar_url":"https://github.com/karshPrime.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Studying Users and Permissions with Flight Database\n\nThis project focuses on studying users and permissions within a database management system. It is implemented using the Julia programming language and utilizes MySQL as the chosen database system. This README provides guidance for setting up the project environment on a local machine.\n\n## Prerequisites\nEnsure that the following software is installed on the host machine:\n\n- Julia (latest version)\n- MySQL (latest version)\n\nIf these software are not yet installed, please follow the instructions provided below:\n\n\n## Method 1: On Local System (manual install)\n\u003cdetails\u003e\n\u003csummary\u003e Setting the project on the local system. \u003c/summary\u003e\n\u003cbr\u003e\n\n**Note:** Please edit `line 9` in `authenticator.jl` and replace the IP address there with `'localhost'`\n\n### Julia Installation\n\nAccess the [official Julia downloads page](https://julialang.org/downloads/) and download the binary that matches your operating system. Follow the provided instructions to install it.\n\n### MySQL Installation\n\nDownload MySQL from the [official MySQL website](https://dev.mysql.com/downloads/installer/). Choose the version that corresponds to your operating system and install it following the provided instructions.\n\n### Setup Julia Dependencies\n\nThis project utilizes the `MySQL` and `DBInterface` Julia libraries to interact with the database. You can add these libraries by first initializing the Julia built-in package manager:\n\n```julia\njulia\u003e ]\n```\n\nThen, add the required packages:\n\n```julia\n(v1.x) pkg\u003e add MySQL\n(v1.x) pkg\u003e add DBInterface\n```\n\n### Clone Repository\nAfter installing all the required software, you can clone the repository:\n\n```shell\ngit clone https://github.com/karshPrime/uni-flightDBMS.git\n```\n\n\u003c/details\u003e\n\n## Method 2: Using Docker Containers (recommended)\n\u003cdetails\u003e\n\u003csummary\u003e Setting the project on docker containers using the Dockerfile provided. \n\u003c/summary\u003e\n\u003cbr\u003e\n\nInitilising MySQL docker container\n```shell\n$ docker pull mysql\n$ docker docker run -e MYSQL_ROOT_PASSWORD=102874485 -d --name projectServer mysql\n$ docker inspect projectServer | grep -i ipaddress\n```\n**Note**: if ipaddress isn't same as `172.17.0.2` please edit `line 9` in `authenticator.jl` with the correct ip.\n\n\nBuilding Julia container with all dependencies configured\n```shell\n$ docker build -t client-img .\n$ docker run -it --name clientAppFInal -v \"project_path:/app\" client-img\n```\n\\*\\* replace `project_path` with the actual directory, eg: `\"C:\\\\Users\\\\user33\\\\Programs\\\\flight-dbms:/app\"` \u003cbr\u003e\n\nWith this, you would be in the container shell. To continue connect to the other container MySQL using:\n```shell\n$ mysql -h 172.17.0.2 -u root -p\n```\nChange the `ipaddress` here if it isn't same as this one.\n\n\u003c/details\u003e\n\n## Setting up the Project Database\nThe project involves two databases, each with two corresponding files. Use the following SQL commands to generate and populate the databases with random sample data:\n```sql\nSOURCE ./generate_admins.sql\nSOURCE ./generate_flights.sql\n\nSOURCE ./populate_admins.sql\nSOURCE ./populate_flights.sql\n```\n\n## Running the Application\nThe project includes two applications: one for public usage (with public permissions) and the other for administrative functions. Start these applications as follows:\n\n### Client Application:\n\n```shell\n$ julia interface_public.jl\n```\n\n### Admin Application:\n\n```shell\n$ julia interface_admin.jl\n```\nAt this point, the project should be up and running on your local machine.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarshprime%2Funi-flightdbms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarshprime%2Funi-flightdbms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarshprime%2Funi-flightdbms/lists"}