Code Snippets

Bareal Issa
Published

0
  • Project creator

๐Ÿ“Œ A web application for managing code snippets. Users can register, log in, create, edit, delete, and favorite code snippets. They can also add, edit, and delete comments on snippets and vote (like/dislike) on comments. The application also serves a search functionality by filtering snippets either by user or tag.

The application is deployed on (Heroku) -> [Code Snippets App](https://www.twine.net/signin

โœจ Features

  • ๐Ÿ”’ User Authentication:
    Register, log in, and log out with session-based authentication.

  • ๐Ÿ“ Snippet Management:
    Create, edit, and delete code snippets with tagging support.
    filtering allows you to search snippets by username or tag.

  • โญ Favorites/Bookmarking:
    Favorite (bookmark) snippets and view your favorites.

  • ๐Ÿ’ฌ Commenting System:
    Add, edit, and delete comments on snippets.
    Comments include a like/dislike (voting) mechanism so users can vote on helpful or relevant comments.

  • ๐Ÿ‘๐Ÿ‘Ž Voting for Comments:
    Each comment displays like (๐Ÿ‘) and dislike (๐Ÿ‘Ž) buttons with current vote counts.
    Users can only vote once per comment and switching from like to dislike (or vice versa) adjusts the counts accordingly.

๐Ÿ›  Technologies Used

  • ๐ŸŸข Node.js with Express.js
  • ๐Ÿ—„ MongoDB with Mongoose
  • ๐ŸŽจ EJS for templating
  • ๐Ÿ”‘ bcrypt for password hashing
  • ๐Ÿ”„ express-session for session management