Njoki Kamau
The quotes published earlier are displayed in the carousel. Any new quote added is also added into the carousel. The user is encouraged to attach a theme to the quote for organisation purposes. Each quote is linked to its own like and dislike button. Each quote includes an author, a theme and the date it was published. The quote with the highest number of likes is also highlighted as the Quote of the day.
This project was generated with Angular CLI version 9.1.7.
In this quote application, the user is able to upvote or downvote on the quotes already published or she can add her own quote. If a quote is unwanted, one can also delete it.
Below is the link to the deployed site.
- HTML
- CSS
- Bootstrap
- Markdown
- TypeScript
- Angular
Behavior | Input | Output |
---|---|---|
Display Quotes | display all added quotes fro array | update information to the component |
Add new quote | click the add Quote event | new quote is added to the array |
Upvote and Downvote | click the like and dislike buttons | adds or deducts the number of Likes a quote accumulates |
highlight most liked quote | click dislike and like buttons | Number of likes is displayed |
Delete quote | click delete button | quote is deleted. |
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
You can contact me @ njokifaith61@gmail.com
The project is under MIT license Copyright © 2020.All rigths reserved