Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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=TbF0ImYVjnw

EDIT: 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.