Giter VIP home page Giter VIP logo

reddit-client's Introduction

Reddit Client project

This project is an implementation of the Reddit Client, part of the Codecademy Full-Stack Enginner program ->
https://www.codecademy.com/paths/full-stack-engineer-career-path/tracks/fscp-react-and-redux-portfolio-project/modules/fecp-reddit-client/kanban_projects/reddit-client

Only generally-worded requirements are provided. All design / code / test is done without assistance / guidance.

Build deployed here -> https://suspicious-hawking-232766.netlify.app/


Assets


Testing

  • Tests are created using Jest / Enzyme and are located in the repo under the src/_tests_ folder

  • Run tests using 'npm test'


Technologies used


Features

  • Responsive UI design using both Grid and Flex
  • App retrieves authorization_token from API
  • App communicates with Reddit API using OAuth
  • Users can retrieve listings based on filters (best / controversial / hot / new / rising / top)
  • Users can view comments related to a given listing
  • Users can search reddit.com for specific search terms
  • Build deployed to Netlify: https://suspicious-hawking-232766.netlify.app/

Future work

  • Better / more comprehensive error handling. Mostly just display something and let user go back
    • Look at React error boundary

reddit-client's People

Contributors

dependabot[bot] avatar mattburnett-repo avatar

Watchers

 avatar

reddit-client's Issues

clean up TODOs

Get 90+ scores on Lighthouse

  • there is a Lighthouse option in DevTools
  • Scored above 90
  • Report printed as PDF and saved to public folder in repo

Set up a CI/CD workflow to automatically deploy your application when the master branch in the repository changes

OPTIONAL: Make your application a progressive web app

  • I'm spent... Maybe come back later and work on this item

# version control

  • the project / repo linking instructions are a bit confusing.
  • this project exists outside of the r-c repo.
  • makes sense (projects can use multiple repos), but you can also create project(s) inside a specific repo.

implement state management

  • Redux, and Redux toolkit
    need toolkit to get async stuff
  • Get on top of the Redux workflow
  • Need async / API functionality

# build the components

1 npx cra reddit-client
2 npm install react-redux
3 npm install react-router-dom
4 start by writing tests

  • react -> test rendering (snapshots)
  • redux -> uses Enzyme (state injection?)
  • router -> ???

# next steps

there is an optional PWA task.

maybe come back later to this...

implement filtering

Router doesn't really solve the problem.
All that is required is to trigger a getListings action, passing filterTerm, zB

dispatch(getListings(filterTerm))

this is better done using a button / onClick / callback ->

<button onClick={() => dispatch(getListings('rising'))}>Rising

=== below is included for reference tp the past ===
filter and search

  • I think the requirements mean by "filtering by preselcted categories" refers to these categories in the Reddit nav bar ->

best / controversial / hot / new / random / rising / top

filtering should be handled using Switch / Router / set endpoint in listingsSlice.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.