Giter Club home page Giter Club logo

nancy.demo.blobstorageonnancy's Introduction

Nancy.Demo.BlobStorageOnNancy

Nancy + Azure Blob storage sample

About

Azure has a Blob storage which is a data service for storing big amounts of unstructured data, such as text or binary data(images, videos etc), the data can be accessed worldwide via via HTTP or HTTPS. You can use Blob storage to expose data publicly to the world, or to store private data: http://azure.microsoft.com/en-us/documentation/services/storage/

NancyFx is a very lightweight web framework which is used in this project to serve the service and to provide content negotiation almost out of the box: http://nancyfx.org/

This demo shows how to use Azure storage on NancyFx resulting in a lightweight service ontop of Azure

###In order to use this project you need to:

  1. Log into your Azure account and create a new storage data service
  2. Edit the ConnectionStrings.config in this project. Add your own Azure storage account credentials which can be found when managing keys in the newly created azure storage data service. The account name is the name of your storage.
  3. Build and run the web application
  4. Create containers dynamically(GET request):
  1. Uploading of files can be done via http POST to: http://localhost:65260/documents/upload/{container} or via the web interface
  2. Consume data from a mobile app or your new web app on containers and base path/document:

Example of connection string:

<connectionStrings>
  <add name="StorageConnectionString" connectionString="DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey=KWPLd0r[...]DHptbeIHy5l/Yhg==" />
</connectionStrings>

nancy.demo.blobstorageonnancy's People

Contributors

doff3n avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

nancy.demo.blobstorageonnancy's Issues

Upgrade project to Nancy 2.0-barneyrubble

Upgrade project to use Nancy 2.0 style routes & host on Kestrel (and still Azure, optionally)

  • Planning on beginning work on this in my fork

Didn't realize you couldn't file your own issues O_O lol

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.