GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wintercooled/dotnetcoreDynamicJSON-RPC_MVCExample: An example .NET Core MVC application using the dotnetcoreDynamicJSON-RPC class

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
Controllers
Controllers
 
 
Models
Models
 
 
Properties
Properties
 
 
Views
Views
 
 
wwwroot
wwwroot
 
 
.gitignore
.gitignore
 
 
ExampleMVC.csproj
ExampleMVC.csproj
 
 
Program.cs
Program.cs
 
 
README.md
README.md
 
 
Startup.cs
Startup.cs
 
 
appsettings.Development.json
appsettings.Development.json
 
 
appsettings.json
appsettings.json
 
 
dotnetcoreDynamicJSON-RPC.cs
dotnetcoreDynamicJSON-RPC.cs
 
 

Repository files navigation

Good luck getting this working after any .NET updates - I've adandoned .NET/MVC for Python/Flask now.

A simple .NET Core MVC example using the dotnetcoreDynamicJSON-RPC dynamic RPC wrapper class, which is intended to enable simple, dynamic wrapping of JSON RPC calls to Bitcoin, Elements, Liquid and other RPC enabled daemons.

Status

Runs on Windows, Linux, Mac using the .NET Core cross-platform application framework.

Tested with Bitcoin (bitcoind) and Elements (elementsd) as target daemons.

Will also work with a Liquid node.

Please see the dotnetcoreDynamicJSON-RPC page on GitHub to learn how to use it and its JSON string helper classes in more detail.

MVC

Setting up and running the MVC example on Linux

Install .Net Core 2.1 SDK

Register the Microsoft key and feed by choosing the Linux distribution you are using from the dotnet download site. It will give you the code to run and will look similar to this:

wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

Install the .NET SDK:

sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1

Clone this repository and configure

git clone https://github.com/wintercooled/dotnetcoreDynamicJSON-RPC_MVCExample.git
cd dotnetcoreDynamicJSON-RPC_MVCExample

Amend ExampleController.cs and set the rpc details needed to connect to your Bitcoin/Elements/Liquid node etc.

Run the web app

dotnet run

Browse to https://localhost:5001/

Tidying up

You can go through and remove the extra views and controller actions (About, Contact etc.) that dotnet created if you like. I've left them in so that this example code is not that different to that used by Microsoft in their MVC tutorial.

About

An example .NET Core MVC application using the dotnetcoreDynamicJSON-RPC class

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.