GithubHelp home page GithubHelp logo

rajeshaz09 / foodvotingapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from penningjoy/foodvotingapp

0.0 1.0 0.0 884 KB

This application is a simple real time application built using .Net Core, Signal R, Redis Cache

C# 47.28% HTML 27.80% CSS 8.25% JavaScript 13.33% Dockerfile 3.34%

foodvotingapp's Introduction

Food Voting App

A multi-container Realtime Application using .Net Core, SignalR, Redis Cache and Docker.

The SignalR App has the following features:--

1. App runs on Dotnet Core inside a Linux docker container.
2. Handles connection management automatically.
3. Sends reponses to all connected clients simultaneously. 
4. Can be scaled to handle increasing traffic.
5. App data is stored in In-Memory Redis Cache running in a container.

The client code is written in vote.js and the server code is the voterHub.cs. Hubs call client-side code by sending responses that contain the name and parameters of the client-side method. The client tries to match the name to a method inside the client-side code. When the client finds a match, it calls the method with the parameter data.

Usage

docker run --name local-redis-server -p 6379:6379 -d redis
docker build -t foodvotingapp -f Dockerfile .
docker run -p 32768:8080 -d foodvotingapp

Go to localhost:32768

Notes

The Redis server and the Signal Core Application run in two separate containers. The IP referred to in the signalR application is the host computer IP.

ipconfig

foodvotingapp's People

Contributors

penningjoy avatar

Watchers

 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.