alttabs / like-button-dotnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Like Feature

Like button feature:

  • Easily added to an article.
  • Use cases:
    • When a user visits an article, a like button is rendered and displays the total number of likes
    • When a user clicks the like button, the count increments by one.

Stack

C# : Razor Pages with Entity Framework on ASP.NET

How to run in your machine

  • Clone the repo
  • Install dependencies with Nuget
  • Open with the navegator the Views/Likes/Index Page

How to Use

-url/Likes/Index: list of created articles and some related info;

  • url/Likes/Article/{id}: Article;
  • /Likes/Create: Creates a new article with a form
    • like_user: Requested: False it's allowed to create an article anonymously
  • Like Button: when it's clicked, the count increments by one and it's shows the total number os likes.

About


Languages

Language:JavaScript 90.3%Language:C# 6.8%Language:HTML 2.6%Language:CSS 0.3%Language:ASP.NET 0.0%