Code Monkey home page Code Monkey logo

reddit-simulator-react-redux's Introduction

Reddit Simulator

Reddit Simulator Banner

Reddit Simulator is a project that simulates a Reddit server by fetching posts and comments from the Reddit API. It provides a user interface to browse and interact with the fetched data, allowing users to view posts, toggle comments, and perform various actions.

Features

  • Fetches posts from the Reddit API based on the selected subreddit.
  • Displays a loading animation while fetching data.
  • Allows users to toggle comments for each post.
  • Fetches comments for a post when the comments are toggled.
  • Provides error handling for failed API requests.
  • Allows users to retry fetching posts in case of an error.
  • Supports filtering posts based on search terms.

Technologies Used

  • React: A JavaScript library for building user interfaces.
  • Redux: A predictable state container for JavaScript apps.
  • react-redux: Official React bindings for Redux.
  • react-animated-list: A library for animating lists in React.
  • Reddit API: The API provided by Reddit to fetch posts and comments.

Installation

  1. Clone the repository: git clone https://github.com/rafaelfalleiros/reddit-simulator-react-redux.git
  2. Navigate to the project directory: cd reddit-simulator-react-redux
  3. Install the dependencies: npm install
  4. Start the development server: npm start
  5. Open the application in your browser at http://localhost:3000

Usage

  1. Enter a subreddit name in the search bar to fetch posts from that subreddit.
  2. Click on the "Toggle Comments" button to view the comments for a post.
  3. If an error occurs while fetching posts, click on the "Try Again" button to retry.
  4. Explore the different posts and comments within the application.
  5. Have fun simulating your own Reddit server!

Bugs and Issues

Some bugs were detected throughout this project's development:

  1. The "Toggle Comments" button does not work properly when the comments are already toggled.
  2. The "Try Again" button does not work properly when an error occurs while fetching posts.
  3. The Search bar does not work properly the user tries to search for a subreddit.

Contributing

Contributions are welcome! If you find any other bugs or have suggestions for improvement, please open an issue or submit a pull request. Make sure to follow the project's code of conduct.

License

This project is licensed under the MIT License.

reddit-simulator-react-redux's People

Contributors

rafaelfalleiros avatar

Watchers

 avatar

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.