Skip to content

bparrish17/pexel-gallery

Repository files navigation

Demo Angular Application

Try the App Here

This is a demo application featuring some common patterns, such as

  • user action handling
  • front-end unit testing
  • asynchronous observable logic
  • component/app structure
  • simple styling

Most of the logic can be found starting at the App Component

Getting Started

  1. Clone this directory
  2. get an API Key for pixels here
  3. run npm run init-credentials
  4. in the newly created src/secrets.ts, add export const API_KEY = 'your-api-key-here'
  5. run npm start - will install modules and run ng serve to start application
  • The app will automatically reload if you change any of the source files.
  1. Open application at localhost:4200
  2. run npm test to run the test suite
  • note: this will also require API_KEY to be created (although it can be a dummy value)
  • Note: Node version 14.16.0

Other Commands

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 e2e to execute the end-to-end tests via Protractor.

Credits

Wishlist

  • Mobile Responsiveness
  • Accessibility improvements
  • performance handling of infinite scroll
    • hide images by section
    • throttleTime => throttle(<duration selector checking for searchResults$ emission>)
  • proper components for the spinner, input field etc. (if it were necessary)
  • modules aliases for @services, @components
  • retryWhen operator for failed search queries
  • Consistently used SCSS Variables/theming
  • Animation to display for fab buttons on dialog
  • "Hover" state for images in addition to cursor that the UX is more clear in photos being clickable
  • More extensive directive tests

About

Demo Angular Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published