Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codewithalamin/advice-generator-app

Generate random quotes of advice with the Advice Slip API.
https://github.com/codewithalamin/advice-generator-app

advice-api advice-generator advice-generator-app adviceslip-api codepapa360 css front-end-development frontend frontend-mentor html javascript javascript-vanilla quote-generator sass

Last synced: 4 days ago
JSON representation

Generate random quotes of advice with the Advice Slip API.

Awesome Lists containing this project

README

        

Advice generator app


Challenge from [Frontend Mentor](https://www.frontendmentor.io/challenges)


Live Demo


FrontendMentor

Status

License



This project uses the Advice Slip API to generate random quotes of advice. The project is written in `JavaScript` and uses the `fetch()` API to make requests to the Advice Slip API. The app features a smooth transition effect when displaying the advice, creating an engaging user experience.

![Screenshot](./screenshots/Advice-generator-app-screenshot-CodeWithAlamin.png)

## The challenge

Users should be able to:

- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Generate a new piece of advice by clicking the dice icon

## Built with

- Semantic HTML5 markup
- Mobile-first workflow
- CSS custom properties
- JavaScript
- NPM
- [Webpack - a module bundler](https://webpack.js.org/)
- [Advice Slip API](https://api.adviceslip.com/)

## What I Learned

In the process of developing the Advice Generator App, I expanded my skills and knowledge in various aspects of web development. Working with the Advice Slip API allowed me to gain hands-on experience with integrating third-party APIs into my projects. I deepened my understanding of `asynchronous` JavaScript and utilized the `fetch()` API to efficiently retrieve data from the API. Overall, this project provided an opportunity to sharpen my `JavaScript` skills, API integration capabilities, and UI design techniques, further advancing my expertise in web development.

## Installation

- Clone this repo:

```sh
git clone https://github.com/CodeWithAlamin/Advice-generator-app.git
```

- Install dependencies:

```sh
npm install
```

- Build command:

```sh
npm run build
```

- Live server:

```sh
npm start
```

## Author

👤 Alamin

- Twitter - [@CodeWithAlamin](https://www.twitter.com/CodeWithAlamin)
- LinkedIn - [@CodeWithAlamin](https://www.linkedin.com/in/CodeWithAlamin)
- Frontend Mentor - [@CodeWithAlamin](https://www.frontendmentor.io/profile/CodeWithAlamin)
- Github: [@CodeWithAlamin](https://github.com/CodeWithAlamin)

Feel free to contact me with any questions or feedback!

## Show your support

Give a ⭐️ if you liked this project!

## Acknowledgments

Special thanks to Frontend Mentor for providing such an amazing platform to practice and improve my frontend skills.

## License

This project is licensed under the [MIT](https://github.com/CodeWithAlamin/Advice-generator-app/blob/main/LICENSE.md) license, which means you can use, modify, and distribute the code as you wish. If you have any questions or feedback, feel free to reach out. Thank you for considering my code!