Coder Social home page Coder Social logo

my-reddit-clone's Introduction

Reddit Front-end Clone

This project is a read only reddit client clone, Using data fetched from the reddit API.

Features

single / split view toggle between post rendering full width or dividing the screen and posts. clicking the post title takes the user to the post's page

Usage

Clone or Download the project then run the following commands in your terminal on "Linux & Mac".

cd my-reddit-clone
npm i
npm run dev

Deployment

Use npm run build to create static files which can found in ./dist and npm run preview run a local network server

Testing

Use npm run test run tests.

Technologies

 "dependencies": {
    "@emotion/react": "^11.11.1",
    "@emotion/styled": "^11.11.0",
    "@mui/icons-material": "^5.14.16",
    "@mui/material": "^5.14.17",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-markdown": "^9.0.0",
    "react-router-dom": "^6.18.0"
  }

API Fetch where done by appending .json to the end of the url, but before the Query String. Original URL: (https://www.reddit.com/) JSON URL: (https://www.reddit.com/.json)

Future

  • On the Home page an eventListener could be implemented that when the end of posts is reached, Trigger a fetch resulting in infinity scrolling.

  • In the comment section, load more comments should be implemented

  • Theme Switching

  • Post img / Carousel could use timeout to alternate between images if more than 1 images.

  • Add video player

  • ViewOptions could be added to filter and control viewed posts.

  • Allowing the user to increase the fetched posts limit.

  • Implement comments nesting using depth and parent_id

Design

My goal was to display posts like on YouTube, but the project changed as I continued.

Desktop Preview

Desktop Preview

Mobile Preview

Mobile Preview

my-reddit-clone's People

Contributors

sironi-00 avatar

Stargazers

 avatar

Watchers

 avatar

my-reddit-clone's Issues

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.