Skip to content

Instanews: NY Times API call using jQuery ajax(), dynamic elements created with vanilla Javascript, mobile-responsive layout using SASS and CSS Flex.

Notifications You must be signed in to change notification settings

mbborromeo/instanews-nytimes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

instanews-nytimes

Demo project at Red Academy, while teaching Javascript, jQuery and SASS/CSS. Mobile-first responsive website calling NY Times API to retrieve latest news articles according to user's selected dropdown category.

Live website

https://mbborromeo.github.io/instanews-nytimes

Technologies used

  • Javascript
  • jQuery AJAX method
  • NY Times API call
  • HTML5 Semantic tags
  • SASS/CSS3
  • Gulp
  • NPM

Installation instructions

npm install

To run on your localhost (http://localhost:3000/)

gulp

Development steps/process

  1. Understand the project requirements and design mockups
  2. Set up project in NPM and ensure a package.json file is created
  3. Set up Git source management including .gitignore and README.md files
  4. Install Gulp so SASS can compile
  5. Develop draft CSS layout using static images/content as a placeholder
  6. Convert CSS to SASS syntax for better style management
  7. Implement mobile-first Responsive Web Design techniques using CSS/SASS Media Queries, and pay attention to breakpoints decided in Mockup Design provided in project brief/requirements
  8. Implement jQuery AJAX call to NY Times API to pull actual content
  9. Use Javascript/jQuery to dynamically create HTML elements by using control flow (conditionals and for-loops)
  10. Cater for edge-cases, and test these in the browser console (if an article doesn't have an image, don't display this article)
  11. Edit your SASS styles to suit dynamically created elements if necessary
  12. Test your website on multiple browsers and devices, and fix if need be
  13. Continually save and commit your work in Git (all work on a single commit should be related to one feature/improvement/fix)
  14. Clean up your unecessary code, unclear comments, or un-needed console.logs
  15. W3C Validate your HTML and CSS syntax, and fix errors if necessary
  16. Use HTML5 semantic tags to imply meaning and add more importance for SEO and Accessibility
  17. Add improvements, fix any bugs, add extra functionality
  18. Ensure your README.md file includes project description/features, technologies used, installation instructions, things still to do/improve on

To Do

  • possibly pin header to top
  • on mobile landscape view, make image/article take up full-width

About

Instanews: NY Times API call using jQuery ajax(), dynamic elements created with vanilla Javascript, mobile-responsive layout using SASS and CSS Flex.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published