GithubHelp home page GithubHelp logo

nandodev-practice-projects / newsfeed Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 746 KB

Basic setup for an asp.net core 3.1 web application into a sample project for a NewsFeed. Implements SignalR Core and SqlTableDependency to emit notifications of changes from database.

C# 18.25% HTML 8.26% CSS 3.97% JavaScript 69.51%
signalr-core sqltabledependency netcore31 entity-framework-core visual-studio-2019

newsfeed's Introduction


SAMPLE .NET CORE 3.1 WEB APPLICATION NEWSFEED

Prerequisites and Installation Requirements

  • .NET Core 3.1
  • Visual Studio 2019

Instructions

  • Clone this repository.

  • Compile it.

  • In order to use the SQL Broker, Service Broker for the database mus be enabled: The following command can be used: ALTER DATABASE MyDatabase SET ENABLE_BROKER

  • At hit F5 the database NewsFeed will be created and populated: Data base local connection server is in NewsFeed\appsettings.json: Server=(localdb)\ProjectsV13 Please change as your local sql server name The users created are:

    username: user1 password: abc@123 role: Publisher

    username: user2 password: abc@123 role: Reader

  • Execute the NewsFeed project and enter with the previous credentials. Use the command dotnet run

Functionalities:

  1. Users can subscribe to a news feed.
  2. Users can view items in a news feed.
  3. Users can search for news feed items.
  4. Users can see a listing of all news items from all feeds.
  5. Users with the role "Publisher" can add a news

SignalR Funcionalities

Following the article http://elvanydev.com/SignalR-Core-SqlDependency-part2/ has been added the funcionalities of to emit notifications to client side on changes in the table News

newsfeed's People

Contributors

nandodev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

karlosrivera

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.