Code Monkey home page Code Monkey logo

reddish's Introduction

Reddish - A Reddit Clone - MERN

Reddit clone (a social media site) made w/ MERN stack & Redux.

Demo

Deployed on Netlify (front-end) & Heroku (back-end)

Built using

Front-end

Back-end

  • Node.js - Runtime environment for JS
  • Express.js - Node.js framework, makes process of building APIs easier & faster
  • MongoDB - Database to store document-based data
  • Mongoose - MongoDB object modeling for Node.js
  • Cloudinary - For image uploading & related API
  • JSON Web Token - A standard to secure/authenticate HTTP requests
  • Bcrypt.js - For hashing passwords
  • Validator.js - For validation of JSON data
  • Mongoose Unique Validator - Plugin for better error handling of unique fields within Mongoose schema
  • Dotenv - To load environment variables from a .env file

Features

  • Authentication (login/register with username-password)
  • CRUD posts & comments
  • Add posts in the form of text, link or image
  • Upvote/downvote posts & comments
  • Dynamic URLs for users (u/Aman) & subreddits (r/reactjs)
  • Sorting of posts on basis of algorithms like hot, top, controversial etc.
  • Full database search feature
  • Pagination of posts
  • Error management to prevent app crashes
  • Sort comments by oldest, newest, most upvoted etc.
  • Avatar uploading for user profiles
  • Toast notifications for actions: adding posts, deleting comments etc.
  • Loading spinners for relevant fetching processes
  • Dark mode toggle w/ local storage save
  • Responsive UI for all screens

Screenshots

Desktop/Tablet

Desktop-home Desktop-2 Desktop-3

Mobile

Mobile-home Mobile-2 Mobile-3 Mobile-4 Mobile-5

Usage

Notes:

  • For image API, make account at cloudinary.com & get API keys from account dashboard.
  • For upload preset usage, if you want to organize images separately at cloudinary.com, you have to create it from account settings first. If you don't want to, just don't put anything or use .env key - UPLOAD_PRESET.

Env variable:

Create .env file in server directory and add the following:

MONGODB_URI = "Your Mongo URI"
PORT = 3005
SECRET = "Your JWT secret"
CLOUDINARY_NAME = "From your cloudinary dashboard"
CLOUDINARY_API_KEY = "From your cloudinary dashboard"
CLOUDINARY_API_SECRET = "From your cloudinary dashboard"
UPLOAD_PRESET = "Folder/preset name from your cloudinary account" (OPTIONAL)

Client:

Open client/src/backendUrl.js & change "backend" variable to "http://localhost:3005"

cd client
npm install
npm start

Server:

Note: Make sure that you have installed 'nodemon' as global package.

cd server
npm install
npm run dev

reddish's People

Contributors

amand33p avatar

Watchers

James Cloos 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.