Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anfibiacreativa/myapp-apollo-interceptors
An app requesting data from a GraphQL API using Apollo Client, and implementing interceptors and guards
https://github.com/anfibiacreativa/myapp-apollo-interceptors
angular authentication http-interceptor lazy-loading-image token
Last synced: 3 days ago
JSON representation
An app requesting data from a GraphQL API using Apollo Client, and implementing interceptors and guards
- Host: GitHub
- URL: https://github.com/anfibiacreativa/myapp-apollo-interceptors
- Owner: anfibiacreativa
- Created: 2019-05-26T09:14:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T19:52:44.000Z (almost 2 years ago)
- Last Synced: 2024-10-06T01:22:33.683Z (3 months ago)
- Topics: angular, authentication, http-interceptor, lazy-loading-image, token
- Language: TypeScript
- Size: 11.4 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyappApollo
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.3. It is to be used along with https://github.com/anfibiacreativa/myapp-server to load the kitten and launch them to space!
You can see the video of the talk in relation to this repo, here!
https://www.youtube.com/watch?v=TbF0ImYVjnwEDIT: This is an extended version, implementing interceptors and a basic AuthGuards example!
## Development server
Run `ng serve --port 8001` for a dev server. You have to launch it in port 8001 otherwise your connection to the database will fail due to CORS. Navigate to `http://localhost:8001/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
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`.
## 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 unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
## Credits
All the cats in the source folder are from https://unsplash.com/search/photos/kitten by different authors. Thank you to all of them for the photography contributes to knowledge sharing in other contexts, like Angular development.