{"id":15297269,"url":"https://github.com/danijeldragicevic/simple-car-sharing-app","last_synced_at":"2025-03-25T13:14:53.988Z","repository":{"id":172155992,"uuid":"633851066","full_name":"danijeldragicevic/simple-car-sharing-app","owner":"danijeldragicevic","description":"A simple application for managing car rentals","archived":false,"fork":false,"pushed_at":"2023-04-28T12:34:24.000Z","size":2387,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T12:14:24.339Z","etag":null,"topics":["dao-design-pattern","daos","h2-database","java-11","javac","querystring"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danijeldragicevic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-28T12:32:21.000Z","updated_at":"2023-04-28T12:52:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"956aac88-5547-4b62-84e2-8d4cc3268a9b","html_url":"https://github.com/danijeldragicevic/simple-car-sharing-app","commit_stats":null,"previous_names":["danijeldragicevic/simple-car-sharing-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danijeldragicevic%2Fsimple-car-sharing-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danijeldragicevic%2Fsimple-car-sharing-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danijeldragicevic%2Fsimple-car-sharing-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danijeldragicevic%2Fsimple-car-sharing-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danijeldragicevic","download_url":"https://codeload.github.com/danijeldragicevic/simple-car-sharing-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245467614,"owners_count":20620216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["dao-design-pattern","daos","h2-database","java-11","javac","querystring"],"created_at":"2024-09-30T19:16:10.015Z","updated_at":"2025-03-25T13:14:53.959Z","avatar_url":"https://github.com/danijeldragicevic.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Car Sharing App\nJava application who manages car renting(s).\nApplication is able to:\n- create cars, companies and customers;\n- customers are able to rent and return cars to belonging companies;\n\n# Technology\n- Java 11\n- H2 database\n\n# To run application:\nThere are no any build automation tool used. We have to compile and run manually. :)\n\nTo compile files, navigate to the project root directory and run following command:\n\u003e javac -cp ./libs/h2-2.1.214.jar -d ./out/production/simple-car-sharing-app -sourcepath . src/carsharing/*.java src/carsharing/*/*.java src/carsharing/*/*/*.java\n\nTo run application, navigate to the project root directory and run following command:\n\u003e java -cp ./libs/h2-2.1.214.jar:./out/production/simple-car-sharing-app carsharing.Main\n\n# Examples\nThe symbol **\u003e** represents the user input.\n\n**Example 1:** Manager operations:\n```\n1. Log in as a manager\n2. Log in as a customer\n3. Create a customer\n0. Exit\n\u003e1\n\n1. Company list\n2. Create a company\n0. Back\n\u003e1\nThe company list is empty!\n\n1. Company list\n2. Create a company\n0. Back\n\u003e2\n\nEnter the company name:\nCar ToGo\nThe company was created.\n\n1. Company list\n2. Create a company\n0. Back\n\u003e 2\n\nEnter the company name:\nDrive Now\nThe company was created.\n\n1. Company list\n2. Create a company\n0. Back\n\u003e 1\n\nChoose the company:\n1. Car ToGo\n2. Drive Now\n0. Back\n```\n\n**Example 2:** Company operations:\n```\nChoose the company:\n1. Car ToGo\n2. Drive Now\n0. Back\n\u003e 1\n\n'Car ToGo' company\n1. Car list\n2. Create a car\n0. Back\n\u003e 1\n\nThe car list is empty!\n\n'Car ToGo' company\n1. Car list\n2. Create a car\n0. Back\n\u003e 2\n\nEnter the car name:\nFord Mustang\nThe car was created.\n\n'Car ToGo' company\n1. Car list\n2. Create a car\n0. Back\n\u003e 2\n\nEnter the car name:\nDodge Viper\nThe car was created.\n\n'Car ToGo' company\n1. Car list\n2. Create a car\n0. Back\n\u003e 1\n\nCar list:\n1. Ford Mustang rented: false\n2. Dodge Viper rented: false\n\n'Car ToGo' company\n1. Car list\n2. Create a car\n0. Back\n\u003e 0\n\n1. Company list\n2. Create a company\n0. Back\n\u003e 0\n\n1. Log in as a manager\n2. Log in as a customer\n3. Create a customer\n0. Exit\n```\n\n**Example 3:** Customer operations:\n```\n1. Log in as a manager\n2. Log in as a customer\n3. Create a customer\n0. Exit\n\u003e 2\nThe customer list is empty!\n\n1. Log in as a manager\n2. Log in as a customer\n3. Create a customer\n0. Exit\n\u003e 3\n\nEnter the customer name:\nJohn Doe\nThe customer was created.\n\n1. Log in as a manager\n2. Log in as a customer\n3. Create a customer\n0. Exit\n\u003e 3\n\nEnter the customer name:\nJane Doe\nThe customer was created.\n\n1. Log in as a manager\n2. Log in as a customer\n3. Create a customer\n0. Exit\n\u003e 2\n\nChoose a customer:\n1. John Doe\n2. Jane Doe\n0. Back\n\u003e 2\n\n1. Rent a car\n2. Return a rented car\n3. My rented car\n0. Back\n\u003e 1\n\nChoose a company:\n1. Car ToGo\n2. Drive Now\n0. Back\n\u003e 1\n\nChoose a car:\n1. Ford Mustang\n2. Dodge Viper\n\u003e 1\nYou rented 'Ford Mustang'\n\n1. Rent a car\n2. Return a rented car\n3. My rented car\n0. Back\n\u003e 1\nYou've already rented a car!\n\n1. Rent a car\n2. Return a rented car\n3. My rented car\n0. Back\n\u003e 3\nYour rented car:\nFord Mustang\nCompany:\nCar ToGo\n\n1. Rent a car\n2. Return a rented car\n3. My rented car\n0. Back\n\u003e 2\nYou've returned a rented car: Ford Mustang.\n\n1. Rent a car\n2. Return a rented car\n3. My rented car\n0. Back\n\u003e 0\n\n1. Log in as a manager\n2. Log in as a customer\n3. Create a customer\n0. Exit\n\u003e 0\n```\n\n# Licence\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanijeldragicevic%2Fsimple-car-sharing-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanijeldragicevic%2Fsimple-car-sharing-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanijeldragicevic%2Fsimple-car-sharing-app/lists"}