I have been developing an app that has to access a DB and return data has charts in a web page. since it is to be added to another software i had to create it as a local server / servce, using self host web api, returning the data as json so i can read it in my html file and create the charts.
The server / service works, but my problem remains on the client. I don't know if i have to create another project for my html or if i just add a folder with my html and all css and javascript.
Basically when i run it i have to display my html file.
I have been looking the web for examples / solutions but i can't seem to find one that will help me, i've checked:
creating help pages with T4, but it includes all my css and js files in my html and when i want to change something i have to remove the include, debug and include it again;
create a web app but when i run it it creates me 2 servers, the one i've created and the web page server, although my web page will access it using angularjs, i can't have the second server;
I'm a little lost on how i will do it.
Can someone give me some help?
I'm using VS2010, self-host WebApi, console app, entity framework, angularjs, nvd3 and d3.
thk
If you have developed your project using MVC4 you can create view/controller related to report in webapi project.Point add html files to this view.This won't create 2 servers.
Related
Are you aware of any guide / tutorial / example project that might help me embed the jBPM web designer in an existing web application?
Namely:
Which are the maven libraries I need to include?
Is it possible to deploy the designer specific components in the main application WAR (this is after all what embedded means)?
How can I access the designer? Is there a specific URL for it?
Thanks in advance for any hint.
I finally found out how to do it.
What you need is a running instance of the KIE workbench (seems this was once formerly called Drools Guvnor). You can get a demo system up and running very fast using the jBPM installer. A written guide on how to do it can be found here. In my case I downloaded the jbpm-6.1.0.Final-installer-full.zip from here.
As soon as you have the JBoss AS/WildFly with the KIE workbench running you can access it through http://localhost:8080/jbpm-console/.
Now each BPMN process saved in the KIE workshop seems to have a unique path which is also a Git repository URL. When you open a diagram and go to the metadata tab this path is listed as URI.
To display this BPMN process inside a custom-built web application with the jBPM Designer BPMN 2 editor, just create an iframe HTML element with that URL in it like the following example:
<html>
<head>
<title>Test</title>
</head>
<body>
<h1>Test</h1>
<p>Editor frame below:</p>
<iframe height='800' src='http://localhost:8080/jbpm-console?standalone=&path=git://master#jbpm-playground/HR/src/main/resources/hiring.bpmn2' width='1000'></iframe>
</body>
</html>
As soon as you load that page, the editor will be embedded into the page via that iframe. This works even with a static HTML page without a web server, so it should be quite versatile and your web application surely doesn't need to run inside the same JBoss AS/WildFly instance and doesn't even need to be written in Java.
What I did not figure out so far is how to create new BPMN processes via some kind of API, which could then be edited within the standalone web application. Also I don't know how access control is supposed to work yet.
I would like to create a Rails 4 app, where some data is entered into the db via a form and when it is published, any changes on the site are compiled and the entire consumer facing site is just a bunch of flat HTML files.
That way, on each request there isn't a db request done and just a simple HTML file is sent.
This is similar to the way Octopress operates, where you write a blog post locally and when you do a deploy it basically compiles the entire site into a large set of connected HTML files that are then pushed to your host(gh-pages for instance).
Is there a way to use extensive caching or something similar to get the same effect in Rails 4 or should I go about it another way in Rails or should I just try to customize Octopress for my needs?
Have a look at page caching, it has been moved from Rails to a separate gem
https://github.com/rails/actionpack-page_caching
It saves the generated HTML files to a specified directory which you should be able to deploy separately from the rest of the application.
I have a spring MVC app and a joomla "showcase web site".
How can I display data from spring MVC in my joomla showcase site?
My first attempt was to create a simple joomla module with inside jqgrid. But I discovered that many browser deny JSON cross domain and that this attempt is not good.
I also tried with an IFrame.. but I don't like this approach..
The current attempt is to export data from MVC app in RSS. I've installed an rss module in joomla and it works. But it's limited in search and sorting operation.
It would be great to find a way that permit to filter and sort data using some existent and open joomla module.
Does anyone have suggestion on proper export data tecnology and a related module?
#mserioli
You should use the php curl, and in your module you make the request using the GET or POST method to retrieve data (json/xml) from your MVC app
We are building a web application using SVG & JS. The log file for this application needs to be created on the client side and then finally uploaded to the server once the project is ended.
As we donot wish to go near ActiveX controls, is it possible to achieve this with the new HTML5 'Local Storage'? Isnt that what 'Local Storage' is for anyways?
Is there a working example of this as well?
Many thanks,
Not really sure what you mean by this but there is something out there called jStorage.
It uses javascript and json to save data to the local database.
I have AMFPHP installed on my server. I have a flash app that can call it's methods. I want to create some HTML (on server created) pages which will contain HTML code and results of AMFPHP functions. How to create such thing?
I did this a while back, but unfortunately don't have the code on this computer. However, here's a place to get you started:
http://www.flash-db.com/Tutorials/hello/flashamfphp.php
...and in general:
http://www.google.com/search?aq=0&oq=amfphp&sourceid=chrome&ie=UTF-8&q=amfphp+tutorial