Code Monkey home page Code Monkey logo

dreddit's Introduction

Dreddit

Live Link

An online hub for gripes, grumbles, and other grievances. Dreddit is a Reddit clone built with the MERN stack, a combination of following four technologies: MongoDB, Express, React, and Node.

Created by Seth Ullman and Eli Raybon.

Technololgies

  • React
  • Redux
  • Node
  • Express
  • MongoDB
  • Axios
  • BCrypt
  • HTML
  • CSS
  • Multer
  • AWS S3

Features

  • Create and delete posts
  • Photo and video uploads (using Multer and Amazon AWS)
  • Comment on posts or reply to other comments
  • Upvote/downvote posts and comments
  • Creating your own SubDreddit
  • Search Bar
  • User Authentication

The Dreddit homepage hits users with a cavalcade of the latest complaints, which can be upvoted, downvoted or commented on. If a user is interested in a post, there are links to quickly jump to the associated SubDreddit or User Profile.

A typical SubDreddit contains all of the posts that were made within it as well a menu to quickly join/leave. Users are given easy access to all of the SubDreddits they have joined in the navbar (the flying saucer button). The Daily Dredd menu is also present here to enoucorage users to continue to explore the site and bask in the bad vibes.

Users can create posts within a SubDreddit and upload their own photos and videos.

The Search Bar lets users search the site for specific SubDreddits and other subjects they may wish to gripe about. This is accomplished using regular expressions to match the user's query and return the closest results.

Here's a look at what the search route looks like:

router.post('/search', (req, res) => {
  const searchTerm = req.body.searchTerm;
  if (!searchTerm) return res.send([]);

  Subdreddit.find({ title: { $regex: searchTerm, $options: "i" } })
    .then(subs => {
      return res.send(subs);
    })
})

Another cool feature of Dreddit is the nested comment system. All comments can be upvoted, downvoted and replied to.

dreddit's People

Contributors

eliraybon avatar sethullman avatar

Stargazers

Asaf avatar Michael Simeon avatar Tony Ng avatar  avatar Brennan Flood avatar Pavel Aparcana avatar Mitchell Goldberg avatar Martin Markaj avatar Alex Lee avatar  avatar

Watchers

 avatar  avatar

Forkers

sethullman

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.