Git Product home page Git Product logo

tankstercommand's Introduction

Tankster Command: Leaderboard & Chat Sample

The leaderboard and chat sample demonstrates how you can combine ASP.NET and Node.js in the same web application. The application consists of the following components.

  • An ASP.NET MVC 4 leaderbaord application using Entity Framework Code First.
  • A Node.js server that leverages Socket.IO to handle real-time communication between chat users.
  • A Redis store to persist Socket.IO connections and messages, permitting to scale out the chat services.

Prerequisites

Running the Sample Locally

  1. Open the TanksterCommand.sln solution.

  2. Compile the solution. The NuGet packages dependencies will be automatically downloaded and installed.

  3. Create a Facebook Application and set the FacebookAppId and FacebookAppSecret in the web.config file. You must also set the Facebook Site Url for you Facebook application to the URL where your site will run locally, for example http://localhost:23595. See this post or Facebook's article for more details on setting up a Facebook app.

     <add key="FacebookAppId" value="..." />
     <add key="FacebookAppSecret" value="..." />
    
  4. Press F5 to run the sample. Log in and try the Chat view.

Deploying the Application to Windows Azure

  1. Create a Windows Azure Web Site with a Database and download the publish profile. See this tutorial for more details.

  2. After you have downloaded the publish profile open the project in Visual Studio. Right-click on the TanksterCommand project and click publish.

  3. Import your publish profile and click publish.

  4. Be sure to enable code first migrations in order to setup your database after you deploy.

    Enable Migrations

  5. Click publish and wait for the application to deploy.

  6. After the applciation is published it will open in the browser. You can now login and test the chat.

tankstercommand's People

Watchers

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.