{"id":20452639,"url":"https://github.com/lamba01/advice-generator-app","last_synced_at":"2026-04-14T19:32:52.332Z","repository":{"id":172006482,"uuid":"648721296","full_name":"lamba01/Advice-Generator-App","owner":"lamba01","description":"A test of my API integrations knowledge. This is an advice generator from an API using the JavaScript fetch function.","archived":false,"fork":false,"pushed_at":"2023-07-03T20:34:52.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T14:13:30.253Z","etag":null,"topics":["api","apiintegration","fetch-api","javascript","json-api"],"latest_commit_sha":null,"homepage":"https://adviceegeneratorapp.netlify.app/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lamba01.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-06-02T16:33:34.000Z","updated_at":"2023-07-03T20:37:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a2fc460-ef41-4ea5-b433-19087fb08ca9","html_url":"https://github.com/lamba01/Advice-Generator-App","commit_stats":null,"previous_names":["lamba01/advice-generator-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lamba01/Advice-Generator-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FAdvice-Generator-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FAdvice-Generator-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FAdvice-Generator-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FAdvice-Generator-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamba01","download_url":"https://codeload.github.com/lamba01/Advice-Generator-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FAdvice-Generator-App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31812968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"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":["api","apiintegration","fetch-api","javascript","json-api"],"created_at":"2024-11-15T11:09:52.088Z","updated_at":"2026-04-14T19:32:52.313Z","avatar_url":"https://github.com/lamba01.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advice-Generator-App\n# Frontend Mentor - Advice generator app solution\n\nThis is a solution to the [Advice generator app challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/advice-generator-app-QdUG-13db). Frontend Mentor challenges help you improve your coding skills by building realistic projects.\n\n## Table of contents\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [What I learned](#what-i-learned)\n  - [Continued development](#continued-development)\n  - [Useful resources](#useful-resources)\n- [Author](#author)\n- [Acknowledgments](#acknowledgments)\n\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- View the optimal layout for the app depending on their device's screen size\n- See hover states for all interactive elements on the page\n- Generate a new piece of advice by clicking the dice icon\n\n### Screenshot\n\n![](./screenshot3.png)\n\n### Links\n\n- Solution URL: [Solution](https://github.com/lamba01/Advice-Generator-App)\n- Live Site URL: [Live Site](https://adviceegeneratorapp.netlify.app/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS custom properties\n- Flexbox\n- Data from API\n\n\n### What I learned\n\n\n```js\nfunction fetchNewAdvice() {\n  fetch(\"https://api.adviceslip.com/advice\")\n    .then((response) =\u003e response.json())\n    .then((data) =\u003e {\n      const advice = data.slip.advice;\n      contentElement.textContent = \"\\\"\" + advice + \"\\\"\";\n      const id = data.slip.id;\n      slipid.textContent = \"advice #\" + id\n    })\n    .catch((error) =\u003e {\n      console.log(\"Error fetching data:\", error);\n    });\n}\n```\n\n\n\n### Continued development\n\nThis is my first project using API data and it is only a newbie level challenge. I hope to take on harder and more complex projects using APIs before I begin my react tutorial for solid background\n\n\n\n## Author\n\n- Frontend Mentor - [@lamba01](https://www.frontendmentor.io/profile/lamba01)\n- Twitter - [@lambacodes](https://www.twitter.com/lambacodes)\n\n\n## Acknowledgments\n\nI thank myself for not giving up despite the difficulties learning from Nigeria.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamba01%2Fadvice-generator-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamba01%2Fadvice-generator-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamba01%2Fadvice-generator-app/lists"}