Skip to content

An app requesting data from a GraphQL API using Apollo Client, and implementing interceptors and guards

Notifications You must be signed in to change notification settings

anfibiacreativa/myapp-apollo-interceptors

Repository files navigation

MyappApollo

This project was generated with 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.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

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.

About

An app requesting data from a GraphQL API using Apollo Client, and implementing interceptors and guards

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published