Skip to content

(first reddit clone) MVC app made with React.js, Node.js, Express.js & MongoDB. This is my first MERN stack project. Users can pick a username and start posting right away! They can also vote up or down of the posts. Check the new version of this app:

tamalchowdhury/reddit-like-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Reddit Site

New version 2.0 https://github.com/TamalAnwar/reddit-clone-20

Blog Post: Thoughts after Building a Reddit Clone in MERN (Node & React)

Installation

Use npm run client-install to install client dependecies. Use npm install to install server dependecies.

You will need to rename sample.env file to just .env and supply your own mongodb driver url to work with the database.

To start the server, run npm run dev or yarn run dev

Notes after deploying to Heroku

I deployed a branch of this code into Heroku. After deploying and setting up the env variables, the site was showing Not Found error. I realized that the /build/ folder was being ignored in .gitignore. So after pushing it to the repo, it now works fine.

Notes after sharing on the dev community

People right out started spamming the site. People posted content with unreasonable amount of data beyond the limit. Someone started posting NiggerNiggerNigger.. and flodded my database. They did this because it can be done. So it's my turn to make it a bit more secure.

To Do

  • Add option to display the text body under the posts
  • Allow comments
  • Allow only one upvote/downvote per user
  • Add option to load more posts

Improvements from Next Projects

  • Use git version control and branches to streamline development
  • Write more documentation
  • Seperate the API calls into different components, so the codebase will become more mangable.

About

(first reddit clone) MVC app made with React.js, Node.js, Express.js & MongoDB. This is my first MERN stack project. Users can pick a username and start posting right away! They can also vote up or down of the posts. Check the new version of this app:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published