Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/9elements/angular-flickr-search
Flickr search example application. Fully tested, for learning Angular.
https://github.com/9elements/angular-flickr-search
angular cypress flickr learning ngrx protractor spectator testing tutorial
Last synced: about 16 hours ago
JSON representation
Flickr search example application. Fully tested, for learning Angular.
- Host: GitHub
- URL: https://github.com/9elements/angular-flickr-search
- Owner: 9elements
- License: unlicense
- Created: 2018-10-08T12:46:59.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T22:23:47.000Z (almost 2 years ago)
- Last Synced: 2024-04-15T01:10:28.146Z (7 months ago)
- Topics: angular, cypress, flickr, learning, ngrx, protractor, spectator, testing, tutorial
- Language: TypeScript
- Homepage: https://9elements.github.io/angular-flickr-search/
- Size: 5.64 MB
- Stars: 30
- Watchers: 14
- Forks: 30
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flickr Search – Angular example application
📖 This example is part of the **[free online book: Testing Angular – A Guide to Robust Angular Applications
](https://testing-angular.com/)**. 📖This is an Angular example application implementing a Flickr photo search. There is one version with plain Angular and one version with [NgRx](https://ngrx.io/).
The application is fully tested with unit and end-to-end tests.
Unit tests are written in plain Angular using `TestBed` and additionally using [Spectator](https://github.com/ngneat/spectator).
End-to-end tests are written with [Cypress](https://www.cypress.io/).
**[App structure plan (React version)](https://github.com/molily/learning-react/tree/main/5-flickr-search)**
Other versions:
- [Flickr Search with React](https://github.com/molily/learning-react/tree/main/5-flickr-search)
- [Flickr Search with React and Redux](https://github.com/molily/learning-react/tree/main/7-flickr-search-redux)
- [Flickr Search with jQuery](https://molily.de/javascript-introduction/flickr-jquery.html)
- [Flickr Search with Backbone](https://molily.de/javascript-introduction/flickr-backbone.html)
- [Source code for the jQuery and Backbone versions](https://github.com/molily/molily.de/tree/main/javascript-introduction)## Terms of Use
This non-commercial example application uses the Flickr API but is not endorsed or certified by Flickr Inc. or SmugMug, Inc. See the [Flickr API Terms of Use](https://www.flickr.com/help/terms/api).
The code contains a Flickr API key that is bound to the example application. If you wish to use the Flickr API in your application, you need to [Request an API Key](https://www.flickr.com/services/apps/create/) yourself.
## Development server
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.
## Build
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.
## Running the unit & integration tests
Run `ng test` to execute the unit & integration tests with Karma and Jasmine.
## Running the end-to-end tests with Cypress
Run `ng run flickr-search:cypress-run` to execute the Cypress end-to-end tests. (This starts the development server automatically.)
Run `ng run flickr-search:cypress-open` to start the interactive Cypress test runner.
## Deployment
Run `npm run deploy` to the deploy the code to [https://9elements.github.io/angular-flickr-search/].