Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 3.26 KB

README.md

File metadata and controls

58 lines (48 loc) · 3.26 KB

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.