Table of Contents
This is a twitter inspired social media application.
- EJS
- HTML5
- CSS3
- JavaScript
- Node.js
- Express.js
- Cloudinary
- MongoDB
- mongoose
- morgan
- multer
- bcrypt.js
- dotenv
- method-override
Fork this repository and run the game, and follow these steps:
- install the packages:
npm install - add the .env file and write this with your details:
MONGODB_URI=you can get it from your database
PORT= probably 3000
SESSION_SECRET= anything random but should stay a secret
CLOUDNAME= cloudinary name
APIKEY= cloudinary api key
APISECRET= cloudinary api secret
- create accounts and login and update profile pictures and description.
- post text and images if needed.
- comment on a post and like or dislike a post.
- follow other users and see their content on the "following" feed page
- search for posts
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the project_license. See LICENSE.txt for more information.
- Source of logo: ChatGPT
- top posts in feed using aggregate to add a field of likes and sort posts based on it
- searching for posts and users using $regex
- learned about logical queries in mongodb such as $or and $regex and $size and $lt and many others
- did some security checks on every route that is requiring some security, such as the delete route and update
- Private chat with other users
- Repost a post, just like retweet in twitter
- Post videos along side images
- Ability to add multiple images and videos in 1 post
- if you follow someone and he follows you back you become "friends"
- redesign the whole project
[html-url]: