This is a project of a social media website where users can create, like, and bookmark posts similar to Instagram and Twitter. Feel free to check it out here.
- Follow/Unfollow users
- Liking posts
- Bookmarking posts
- Commenting on posts
- Replying to comments
- Notifications for follows and likes
- Search for specific users or posts
Feel free to play around with the code.
- Clone this repo
git clone https://github.com/melvincayas/poster.git
- Install NPM packages
npm install
- Include the following in your
.env
file:
SECRET=RANDOM_PASSWORD_FOR_SESSION_CONFIG
DB_URL=LINK_TO_YOUR_MONGO_DB
If you need to randomly generate a password, you can do so here.
I'm always open to improving my code and the best way to do that is by having others critique it. If you see any bugs or opportunities to refactor, please let me know. It would be highly appreciated!
-
Fork this repo
-
Create your branch for improvement
git checkout -b your-improvement
- Commit your changes
git commit -m "Refactored the code"
- Push to your branch
git push origin your-improvement
- Open a Pull Request
I got what I wanted out of this project once I finished the user notifications for follows and likes. My goal was to see what I could accomplish after finishing a full-stack web developer course on Udemy. After that, I began to learn React!
If I continue this project in the future, I would:
- Recreate the user-interface with React
- Implement infinite scrolling for all posts on the home page
- It became difficult to reuse components, especially posts without tools like React
- Add color indicators in the navbar to show which page is displayed
Melvin Cayas
cayasmj@gmail.com
melvincayas.com
Project Link
Live Version
GitHub