Skip to content
forked from face-hh/feddit

An open-source Reddit clone, made in 1 week.

License

Notifications You must be signed in to change notification settings

eli32-vlc/feddit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Reddit clone made in 1 week.


As seen on YouTube

Contribution

Feel free to contribute to the project!

Issues

I am aware that there are a lot of issues with the project, if possible, open issues only for severe problems.

Self-hosting

  1. Create .env with the following contents:
DB=
Encryption_Key=

DB = MongoDB connection string.

Ecryption_Key = A string which will be used to encrypt the session cookies

  1. Run npm i
  2. Run npm test
  3. Go to https://127.0.0.2:3000

Encryption

Passwords are hashed account tokens are generated by jsonwebtoken via a secret.

Password example: $2b$10$3TsrEozOYxBa/nAwrwZazudUc68ut.oTR/o1RCXRASLnJxi7zMHw.
JWT token example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySUQiOiI2NDk2YTQ4NmUyMDZmM2RiNTI1Zjc3NjciLCJkYXRlIjoxNjg4Mzk1NzYwNjY1LCJhZGRvbiI6IjE4ODk5NjIzNDNkMDk1ZTkzNjAzNmE2ODVhOTA1NDRmMWQ0MDQzYTYxZTc5MDY1NiIsInN1YmZlZGRpdHMiOnt9LCJkZXNjcmlwdGlvbiI6IkkgaGF2ZW4ndCBzZXQgYSBkZXNjcmlwdGlvbiB5ZXQhIiwiaWF0IjoxNjg4Mzk1NzYwfQ.CJgeCdC1VKKQ5oPuGg7veLnO1pkcAg8Y_vG-en7e1BQ

Algorithm

Also available inside /src/Backend/Routes/generatefeed.js

image

License

Apache-2.0

About

An open-source Reddit clone, made in 1 week.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.3%
  • HTML 34.1%
  • CSS 18.6%