This is a simple web app based on HTML, CSS and Javascript.
- Fething the data in JSON format from the API https://type.fit/api/quotes and saving it in a variable.
- Dynamically inserting a random quote into the DOM on initial loading.
- User is able to load a new quote on a button 'New Quote" click.
- User is able to tweet the quote if he liked it on a 'Twitter' button click.
The webpage generates random quotes by famous personalities which can be obviously used for our personal motivation or as a tweet to inspire your community.
I had a lot of fun building this project and as usual I learned a lot from building this. Added some customisation to this project so.......
- Open your terminal and change the current working directory to the location where you want the cloned directory to be made.
$ cd path/to/your/folder/quote-generator/
- Clone repository by typing the following in your terminal:
$ git clone git@github.com:WPBC/quote-generator.git
- Open the index file to view the quote generator. All done.
This package is released under the MIT license.
Check out the results here