Giter Site home page Giter Site logo

signalr-angularjs's Introduction

signalr-angularjs

Chat webapp built using ASP.NET Core SignalR and AngularJS. ASP.NET Core 2.1 tickles my fancy.

TL;DR

Tools used:

  • .NET Core 2.1 SDK
  • Visual Studio Code

Scaffolded using dotnet new meaning Sqlite is used, so project should run on all supported platforms with no changes needed.

To continuously rebuild changes in .cs files

dotnet watch run --environment=Development

And fire up your browser.

VS Code also has excellent debugging support for C#.

Code

Initial project template (Razor) created using dotnet cli

dotnet new razor --auth Individual

Based off of the getting started article for Signal R

The angularjs code I have written myself, i.e. chat.js

It showcases how to provide a SignalR hub connection to an angularjs component through DI. That sounds excruciatingly convoluted, but is actually quite simple, if you've spent 100 hours on pluralsight and doing tutorials with a glacial pace over the last two-three years, like I have :) I wonder if anyone will ever read this. Send me a message if you do!

I called the project Stuff because why not.

Haven't really incorporated auth, but decided to include it. Perhaps I'll update the app to use identity. Perhaps this code will simply never be updated. Perhaps whatever :)

Client side dependencies

Downloaded using npm install and manually copied into wwwroot\lib. I didn't even use --save, that's how evil I am. Mohaha

I can't wait to read about the new tool that replaces yarn's replacement (that's a lie, I can wait)

signalr-angularjs's People

Contributors

languafe avatar dependabot[bot] avatar

Watchers

 avatar James Cloos avatar

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.