This project was generated with Angular CLI version 6.1.1.
This is an app that allows the user to view various quotes and also add his/her own quotes. The app also gives the user the ability to upvote a quote or downvote it and delete a quote on their side of the server. The details of each quote are the Author's name, the quote itself, and the day it was quoted.
Download the zip folder or clone the repo.
To do this run the following:
$ npm install -g @angular/cli
First run:
$ ng serve
Then navigate to http://localhost:4200/
on your browser.
If you don't want to run the app from your local browser you can acces it through the live link: https://lendilai.github.io/Quotes-app/
- Go to the 'quotes' page.
- Enter all the required details and click on the add button.
- Your quote is displayed and you can view the quote by clicking the 'show' button.
- You can upvote or downvote a quote by clicking the respective buttons.
- Finally, you can delete a quote from your side of the server.
- HTML & CSS - HTML used to create the backbone of the application whereas CSS was used to style the elements.
- Javascript - This was used to improve user interactivity and to build on the business logic of the project.
- Typescript - This is a superset of javascript and provided neccessary functions for the building of the application.
Behaviour | Input example | Output example |
---|---|---|
Adding a quote | Fill in fields and click add button | The quote is appended to the list of quotes |
Show quote's details | Click 'show' button | The details of the quote appear |
Upvote/ downvote a quote | Click upvote button/icon | The number of votes increases by one |
Delete a quote | Click delete button | The specific quote gets deleted |
There was a bug in the forms but is has been fixed. For now there are no known bugs.
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.
The application is under an MIT License.
You can contact me via my gmail account:[email protected] or using my phone number: +254 706446072
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.