Giter Site home page Giter Site logo

nandotech / vsnancydemo Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 6.0 38 KB

A small demo web app (api) on .NET Core, NancyFX & Dapper

Home Page: http://blog.nandotech.com/post/2016-10-25-nancyfx-webapi-dapper/

C# 98.82% HTML 1.18%
dapper nancy nancyfx coreclr

vsnancydemo's Introduction

NancyFX 2.0 barneyrubble

Running on ASP.NET Core (Kestrel) with Dapper for data access

Building an Awesome API with .NET Core-Nancy-Dapper

Repo is fairly basic with HomeModule and DispoModule that return a "greeting" from appsettings.json and the other that utilizes Dapper for data access, showing how to implement a POST that inserts an object to the database and GET requests to retrieve data.

  • Modules are to Nancy as Controllers are to ASP.NET
  • For more information, read my blog post on this project
  • One thing: in latest update I've deleted IDbConnectionProvider, you can kinda skip over that piece and check the sample code here. I think this is much cleaner.

Ready to load and run in Visual Studio with .sln file

You may also open and edit/debug using Visual Studio Code, just ignore the Visual Studio .sln file and open the inner folder.

For more details, see my blog post @ http://blog.nandotech.com/post/2016-10-25-nancyfx-webapi-dapper/

Thanks & Credits

First and foremost, thanks & credit to the NancyFX team of developers for building an awesome framework.

Also thanks to the awesome community that was always around to chime in when I had a question.

and lastly, non-Nancy team member but awesome community member:


Credits to http://talkingdotnet.com's blog post @ http://www.talkingdotnet.com/use-dapper-orm-with-asp-net-core/ for help in getting set up. I used some of their info there to help guide me.

Plans to use this alongside some other ASP.NET WebAPI's and perhaps use for some profiling tasks (EF vs Dapper, Nancy vs ASP.NET both on Kestrel, etc).

vsnancydemo's People

Contributors

nandotech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.