{"id":18184257,"url":"https://github.com/retr0sity/gas-station-maps","last_synced_at":"2026-02-27T00:04:07.947Z","repository":{"id":263131463,"uuid":"882705928","full_name":"retr0sity/Gas-Station-Maps","owner":"retr0sity","description":"A REST API project with a ready-structured database.","archived":false,"fork":false,"pushed_at":"2024-11-16T11:57:15.000Z","size":827,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T17:16:29.447Z","etag":null,"topics":["bootstrap","composer","html-css-javascript","mysql-database","slim-framework"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/retr0sity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-11-03T14:49:17.000Z","updated_at":"2024-11-16T11:57:19.000Z","dependencies_parsed_at":"2024-11-16T12:41:11.572Z","dependency_job_id":null,"html_url":"https://github.com/retr0sity/Gas-Station-Maps","commit_stats":null,"previous_names":["retr0sity/gas-station-maps"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retr0sity%2FGas-Station-Maps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retr0sity%2FGas-Station-Maps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retr0sity%2FGas-Station-Maps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retr0sity%2FGas-Station-Maps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retr0sity","download_url":"https://codeload.github.com/retr0sity/Gas-Station-Maps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246720453,"owners_count":20822907,"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":["bootstrap","composer","html-css-javascript","mysql-database","slim-framework"],"created_at":"2024-11-02T21:03:45.716Z","updated_at":"2026-02-27T00:04:07.902Z","avatar_url":"https://github.com/retr0sity.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gas Station API Project\n\n\nThis project is designed to provide a simple RESTful API for managing gas station data, serving as a training exercise in API development and implementation.\n\n## Table of Contents\n\n- [Features](#features)\n- [Technologies Used](#technologies-used)\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- Create, Read, Update, and Delete (CRUD) operations for gas stations\n- Search for gas stations by location, fuel type, and pricing\n- Data validation and error handling\n- Google Maps API implementation\n\n## Technologies Used\n\n- **Language:** PHP\n- **Framework:** Slim Framework\n- **Database:** MySQL\n- **Tools:** Postman for API testing, Git for version control\n- **Google Maps API key:** Refer to a tutorial for that.\n\n## Getting Started\n\nTo get a local copy of this project up and running, follow these steps:\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/retr0sity/gas-station-api.git\n\n2. **Install required libraries:**\n\n   -**Slim Framework**\n   -**PDO support** (make sure you have the required extensions on your PHP installation.)\n   -**Firebase JWT**: For handling JSON Web Tokens.\n\n3. **Create the database**\n\n   Create the database (I named it 'prathriadb') and run the scripts that are provided within the project. If you need to, make changes to the db.php file for the database user to access the database.\n   I also used XAMPP to run the database locally.\n\n4. **Navigate to the REST API directory**\n   ```bash\n   cd gas_stations/restApi/restApi\n\n5. **Run the API on a PHP Development Server**\n   ```bash\n   php -S 127.0.0.1:8888 -t public\n\n6. **Use your own API key**\n   ```bash\n   In the /site/site, open maps_prathria, maps_pelatis and maps_idioktitis files and paste your API key in the (yourkey) section.\n\n## Usage\n\nOnce the server is running, you can open the maps_prathria.html website and the data should come through. If you want to login, users 1-158 are gas station owners, while user159 and user160 are customers who can order fuel.\nThe account credentials are:\n\nusername: userNumber password: passNumber\nExample:\nuser102\npass102\n\n## Contributing\n\nContributions are welcome! If you have suggestions for improvements or new features, please fork the repo and create a pull request. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretr0sity%2Fgas-station-maps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretr0sity%2Fgas-station-maps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretr0sity%2Fgas-station-maps/lists"}