Graph Dracula MVC - model-view-controller

I have a lot to do with nodes and edges. I need to pull from a file/store, draw the graph, and allow interaction to apply filters or rendering styles. Graph Dracula seems perfect.
Unfortunately, I have only the basic understanding of HTML, JavaScript. I feel like AngularJS or the MVC pattern in general is what I need, but it's hard for me to get started. I'm having to learn too much all at once.
Can anybody refer me to a platform or recommend a basic set of html views & scripts that I could use as a launching pad for the MVC part?

At my company we are using ASP.Net MVC to build web applications. Such applications are meant to be hosted inside an Microsoft Internet Information Services server or in the Azure cloud.
If you start in Visual Studio 2015 with File > New ... > Project and then select Templates -> Visual C# -> ASP.Net Web Application -> MVC , Visual Studio will scaffold a project that already works in principle and where you can add your content.
See http://www.asp.net/mvc for tutorials etc.
For data persistence, Microsoft Entity Framework works well with the MVC stack, see https://msdn.microsoft.com/en-us/data/ef.aspx for more.

Related

Is there any way we could use the VS designers for SP Content Types, Lists, etc. in non-standard SP or SP Apps VS project templates?

We are interested in making some custom VS project templates for our developers and this would be a great help. More specifically, we want to create a unified starter VS project template for new SharePoint developers that could target both full trust solutions, CSOM/JSOM, and REST to build/deploy IA to both SharePoint and SharePoint Online. The idea is to add/manage common frameworks and utility classes for our newer developers so that we are always utilizing an updated managed VS project template, no matter what the project requirements dictate.
So is there any way we could use the VS designers for Content Types, Lists, and other SharePoint elements in non-standard SharePoint or SharePoint Apps VS project templates?

Basic Project Template for Asp.net Web Api?

I am wondering if there is a "basic" asp.net web api template. I only see one "web api" project and it brings out of bit of stuff in and not sure if all of it I need.
You can either:
1) Create a new MVC4 project > choose Web API template - but that, as you point out, brings in a lot of stuff, including Modernizer, jQuery, Knockout and so on
2) Create a new ASP.NET empty Web application and install Web API web host from Nuget:
PM> Install-Package Microsoft.AspNet.WebApi
You then end up with a very clean, basic project, including only the necessary DLLs.
3) If you want to self host Web API (not do an ASP.NET MVC4 project), you can create a new console application and install Web API self host from Nuget:
PM> Install-Package Microsoft.AspNet.WebApi.SelfHost
which is perfect for lightweight services, but obviously you don't host inside IIS anymore so there are additional release/deployment considerations. You can read more about self host here -> http://www.asp.net/web-api/overview/hosting-aspnet-web-api/self-host-a-web-api
For Mvc 5 in VS 2015, I select empty project template and check WebApi section. It give me clean project with just WebApi references installed.
My suggestion goes for Empty ASP.NET Web API Project Template, which is a VS extension.
There is a pretty good demonstration of it in this Code Project article.
I use it without any sort of problems and it really is lighter than default WebAPI template.

How to publish my MVC 3 web application onto IIS7

if possible I need total from the beginning utter beginner advice on how to get my ASP.Net MVC 3 Razor Visual Studio 10 web application live onto my IIS 7 webserver please?
I've never tried to publish this before, and wondering what I'm missing?
I've clicked "Publish" on Visual Studio Express 10, created a "published" version of the website. I've uploaded it to my webserver, however can't make it load on the net?
Appreciate some guidance please? (not sure how / what default documents work etc...?)
By far the easiest approach is to use Web Application Deployment.
This blog by Scott Gu gives a great intro
http://weblogs.asp.net/scottgu/archive/2010/07/29/vs-2010-web-deployment.aspx
The article talks about web.config transformations (ability to have a .Release and a .Debug version of your web.config). Later, that capability was generalized through an add-on package to work for any XML-structured file in your deployment (for example, I use it with NLog configuration files).
http://www.hanselman.com/blog/SlowCheetahWebconfigTransformationSyntaxNowGeneralizedForAnyXMLConfigurationFile.aspx

How can I have a SAAS application, separate from my main website?

I am developing a SAAS application using MVC 3 and Windows Azure. I am developing in Visual Studio 2010.
As I will have a main website which promotes the product, what I want to be able to do is have my website and application separate. Would this be feasible to do it in the same solution and add as a separate project?
sure in Visual Studio 2010 you can have different projects in the same solution.
You can for example create a class library project for the Business Logic, another one for the Entities, a common one for the interfaces and another one for the data layer (with or without Entity Framework models...).
In the same solution you can then add a web application project which uses MVC 3 and C#.
In general for big projects you would have multiple solutions with many projects inside any of them. It depends really on the size of your whole architecture.
To decouple things nicely, you should imagine to communicate from MVC site to the business logic not via direct project reference but for example via web servives (XML or better WCF), so your business logic can be installed aferwards also on another machine than the web servers (for example an application server) and the web ui will just use a different machine name or ip address to direct all the WCF calls. we use this approach successfully in several projects.

How to set up a Graphic Designer to work on Asp.Net MVC 3 Razor Views?

We have graphic designers that work on the "look & feel" of our web applications. They typically work with HTML, CSS & images. How can we set up a designer's development environment to work with TFS, Asp.Net MVC 3 Razor Views? What would be the best workflow for them?
We want them to be able to check out the views / css from TFS, edit them, view the results and then check back into TFS.
How can they see their changes to views & css if they don't have the full Visual Studio or IIS or IIS Express?
Should we periodically deploy a web application to a web server for them to work on?
I believe you can download Visual Web Developer Express for free. Once they get that, they can run the project locally (assuming they have access to the database if there is one).
I'm not sure if the TFS plugin is free, if it is then they can work with source control.

Resources