{"id":28796229,"url":"https://github.com/bocaletto-luca/random-advice-generator","last_synced_at":"2025-07-12T02:03:47.402Z","repository":{"id":296693509,"uuid":"994172019","full_name":"bocaletto-luca/Random-Advice-Generator","owner":"bocaletto-luca","description":"Random Advice Generator is a single‑page web application that fetches random advice using the Advice Slip JSON API. In addition to fetching advice, the app allows users to save their favorite advice messages in a list and export this list in various formats (JSON, CSV, and SQL). Built with HTML5, CSS3, and vanilla JavaScript, this app is ...","archived":false,"fork":false,"pushed_at":"2025-06-09T19:59:03.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-09T20:33:46.577Z","etag":null,"topics":["api-free","bocaletto-luca","javascript","random-advice-generator","webapp"],"latest_commit_sha":null,"homepage":"https://bocaletto-luca.github.io/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bocaletto-luca.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,"zenodo":null}},"created_at":"2025-06-01T11:25:25.000Z","updated_at":"2025-06-09T19:59:07.000Z","dependencies_parsed_at":"2025-06-01T20:16:51.757Z","dependency_job_id":"4a68ba69-369c-49fe-9c39-7432be33744d","html_url":"https://github.com/bocaletto-luca/Random-Advice-Generator","commit_stats":null,"previous_names":["bocaletto-luca/random-advice-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bocaletto-luca/Random-Advice-Generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FRandom-Advice-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FRandom-Advice-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FRandom-Advice-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FRandom-Advice-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bocaletto-luca","download_url":"https://codeload.github.com/bocaletto-luca/Random-Advice-Generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FRandom-Advice-Generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260477919,"owners_count":23015068,"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":["api-free","bocaletto-luca","javascript","random-advice-generator","webapp"],"created_at":"2025-06-18T03:11:40.843Z","updated_at":"2025-07-12T02:03:47.385Z","avatar_url":"https://github.com/bocaletto-luca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random Advice Generator | WebAPP | API Free\n\n**Author:** Bocaletto Luca  \n**GitHub:** [bocaletto-luca](https://github.com/bocaletto-luca)  \n**License:** GNU GPL v3  \n\n![HTML](https://img.shields.io/badge/HTML5-E34F26?style=flat-square\u0026logo=html5\u0026logoColor=white)\n![CSS](https://img.shields.io/badge/CSS3-1572B6?style=flat-square\u0026logo=css3\u0026logoColor=white)\n![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=flat-square\u0026logo=javascript\u0026logoColor=black)\n![API](https://img.shields.io/badge/API-Advice%20Slip%20JSON-9cf?style=flat-square\u0026logo=data)\n\n[![Test Online](https://img.shields.io/badge/Test%20Online-Click%20Here-brightgreen?style=for-the-badge)](https://bocaletto-luca.github.io/Random-Advice-Generator/)\n\n## Overview\n\n**Random Advice Generator** is a single‑page web application that fetches random advice using the [Advice Slip JSON API](https://api.adviceslip.com/). In addition to fetching advice, the app allows users to save their favorite advice messages in a list and export this list in various formats (JSON, CSV, and SQL). Built with HTML5, CSS3, and vanilla JavaScript, this app is lightweight, responsive, and easy to use.\n\n## Features\n\n- **Random Advice Fetching:** Retrieve a new piece of advice instantly by clicking the \"Get Advice\" button.\n- **Save Advice:** Add the displayed advice to a saved list with the \"Add to List\" button.\n- **Export Options:** Export your saved advice list as:\n  - **JSON:** For data interchange.\n  - **CSV:** Compatible with spreadsheets and data analysis tools.\n  - **SQL:** Generates SQL `INSERT` statements for database integration.\n- **Responsive Design:** A modern, responsive UI that works seamlessly across devices.\n\n## How It Works\n\n1. **Fetch Advice:** The app sends a request to the Advice Slip JSON API (`https://api.adviceslip.com/advice`) to retrieve a random piece of advice.\n2. **Display and Save:** The advice is displayed on the screen. Users can then click \"Add to List\" to save a copy to an internal list.\n3. **Export Data:** Export buttons allow users to download the saved advice list in JSON, CSV, or SQL format. The exported data is generated dynamically using JavaScript and delivered via a download prompt.\n\n## APIs Used\n\n- **Advice Slip JSON API:** Provides random advice slips in JSON format.  \n  [Visit API Documentation](https://api.adviceslip.com/)\n\n## Tech Stack\n\n- **Frontend:** HTML5, CSS3, JavaScript\n- **API:** Advice Slip JSON API\n\n## How To Use\n\n1. **Open the Web App:** Simply open the `index.html` file in your preferred web browser.\n2. **Get Advice:** Click the **\"Get Advice\"** button to fetch a new advice message.\n3. **Save Your Favorite Advice:** If you like the advice, press **\"Add to List\"** to store it.\n4. **Export Your Saved Advices:** Use the export buttons to download your saved advice in JSON, CSV, or SQL format.\n\n## Contributing\n\nContributions are welcome! If you'd like to improve the project, please fork the repository and submit a pull request. For issues or feature requests, please use the [GitHub Issues](https://github.com/bocaletto-luca/your-repo/issues) page.\n\n---\n\nThis repository documents the **Random Advice Generator** app, a single‑page solution integrating dynamic advice retrieval and data export features using free APIs. Enjoy and happy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Frandom-advice-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbocaletto-luca%2Frandom-advice-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Frandom-advice-generator/lists"}