Skip to content

Video sharing web application using Cassandra, .NET, and Azure

License

Notifications You must be signed in to change notification settings

8forty/killrvideo-csharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KillrVideo C#

A reference application for learning about using Apache Cassandra and DataStax Enterprise with .NET. The application has sample code that uses:

Running Locally

The application uses Docker to spin up all of its dependencies. You'll need to have it installed before trying to start the application locally. You have two options on Windows:

Once you have Docker installed and running, you should be able to git clone this repo and get it running. To run the application:

  1. Open the main solution at /src/KillrVideo.sln in Visual Studio.
  2. Set the KillrVideo project as the Startup Project (right click on the KillrVideo project and choose Set as Startup Project).
  3. Press F5 to build and run.

Once the application has started successfully, you'll see output in console telling you the address where the web UI is available. You can open a web browser to that address to start using the application.

Details on Docker Usage

The first time you build the application in Visual Studio, it will run a script as part of the build to try determine your Docker environment and write those details to an .env file. Then any time the application is run, it will try and start up its infrastructure dependencies first via docker-compose. It starts the following dependencies in Docker containers:

  • A one node DataStax Enterprise cluster: used for all the data storage by the application
  • An etcd node: used as a registry of services for service discovery
  • The KillrVideo Web server: serves up the UI and makes calls to the backend services

Pull Requests, Requests for More Examples

This project will continue to evolve along with Cassandra and you can expect that as Cassandra and the DataStax driver add new features, this sample application will try and provide examples of those. I'll gladly accept any pull requests for bug fixes, new features, etc. and if you have a request for an example that you don't see in the code currently, send me a message @LukeTillman on Twitter or open an issue here on GitHub.

License

Copyright 2016 Luke Tillman

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Video sharing web application using Cassandra, .NET, and Azure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 97.0%
  • Protocol Buffer 1.6%
  • Other 1.4%