Learning Web Programming

Status
Not open for further replies.
Hi,

I have been tasked at work to come up with something to take a report and make it 'interactive' and it needs to be easy to use. I thought this would be a good opportunity to learn web programming and node.js.

My idea was to create a dynamic web form to allow the entry of the report text. For example:

Report Name:
Owner:
Business Area:
Summary:

So each report has a number of paragraphs and sub-paragrphs, I thought that I could have a button to dynamically add them to the form.

I would then take all this data and link it all up using our report format, so that stuff would be automatically aggregated and disaggregated on clicks and the like.

Since this needs to be as simple as possible, and still secure. I thought it would be best to use node-webkit (or whatever its now called) to make a 'stand-alone' app. This would enable us to easily make a web version at a later date if required

While I studied software engineering at university, I have not coded since then. Further, I have never done any web programming. There are so many web frameworks around, I'm not sure what where to start. I had a look at some tutorials, but all of them seem to start with the assumption that you know about web-programming and the 'stack' and how they fit together.

So, this leads me to a couple of questions:

1) Is my approach reasonable?

2) Is this the best approach to take?

3) Does anyone know of any tutorials that will teach me enough to cobble together this application?
 

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=28394259#p28394259:1xu4gavh said:
KhaineBOT[/url]":1xu4gavh]There are many bad reasons we have for not using existing systems, which all basically boil down to cost. This is basically going to be a proof of concept.
Well, if SSRS is available to you then the cost is sunk and all I would ever really suggest it for is proof of concepts (as a webdev I cannot stand the webform interface for SSRS).

There are a number of different ways that you could go about doing this. None of them are particularly hard to learn but all of them that I can think of would require a bit of time to get up to snuff with. Particularly if you haven't done much web development in recent years.

I hate the product but if your company has Office Professional then everyone likely has Infopath available to them which would probably be the easiest way to accomplish such a thing and make it relatively difficult for the users to fuck up. If you have Sharepoint 2010 then Forms Services could serve up a form that doesn't make heavy use of "web style" controls (the Infopath client supports a set of rich controls that the Forms Services player doesn't). Infopath can then be configured to submit the contents of the filled form to a few different locations (a Sharepoint library, a web service or, I think directly to a SQL database).

If automatically moving the content entered into the form into a datastore is not required then I think you could accomplish such a thing with a Word template. I'm not 100% certain that a Word document can have "hidden" form elements that are added to the document on a user's action (button click) but I think they can (far from a Word guru here).

If I were doing such a project at my company then I'd build a web app using AngularJS but that's only because Angular is our standard for rich, interactive, front-end development. I could probably whip something up (depending on the complexity of the business rules) with a service backend to insert everything into a database in a few days. I've been heavily in the Angular world for the past couple of years though.
 

cerkit

Wise, Aged Ars Veteran
181
[url=http:/civis/viewtopic.php?p=28394579#p28394579:o27rz5mn said:
krimhorn[/url]":eek:27rz5mn]
[url=http:/civis/viewtopic.php?p=28394259#p28394259:o27rz5mn said:
KhaineBOT[/url]":eek:27rz5mn]There are many bad reasons we have for not using existing systems, which all basically boil down to cost. This is basically going to be a proof of concept.
Well, if SSRS is available to you then the cost is sunk and all I would ever really suggest it for is proof of concepts (as a webdev I cannot stand the webform interface for SSRS).

There are a number of different ways that you could go about doing this. None of them are particularly hard to learn but all of them that I can think of would require a bit of time to get up to snuff with. Particularly if you haven't done much web development in recent years.

I hate the product but if your company has Office Professional then everyone likely has Infopath available to them which would probably be the easiest way to accomplish such a thing and make it relatively difficult for the users to fuck up. If you have Sharepoint 2010 then Forms Services could serve up a form that doesn't make heavy use of "web style" controls (the Infopath client supports a set of rich controls that the Forms Services player doesn't). Infopath can then be configured to submit the contents of the filled form to a few different locations (a Sharepoint library, a web service or, I think directly to a SQL database).

If automatically moving the content entered into the form into a datastore is not required then I think you could accomplish such a thing with a Word template. I'm not 100% certain that a Word document can have "hidden" form elements that are added to the document on a user's action (button click) but I think they can (far from a Word guru here).

If I were doing such a project at my company then I'd build a web app using AngularJS but that's only because Angular is our standard for rich, interactive, front-end development. I could probably whip something up (depending on the complexity of the business rules) with a service backend to insert everything into a database in a few days. I've been heavily in the Angular world for the past couple of years though.

+1 on InfoPath with your current situation.

Learning enough web development to be where you need to be to pull this off (in Angular with a service backend) would cost much more than buying a solution. All too often, new developers want to build something so badly that they don't even bother investigating whether someone has already solved the problem. Is your salary less expensive than buying the product? It might be, but chances are, your company can buy a solution and you can spend your time putting it together to meet your requirements for far less than what it would cost to have you trained and developing a solution from scratch.

It's a classic buy versus build problem in my eyes.
 

Zaskar

Ars Praefectus
3,347
Subscriptor
[url=http:/civis/viewtopic.php?p=28388037#p28388037:1xxdxqr1 said:
KhaineBOT[/url]":1xxdxqr1]

3) Does anyone know of any tutorials that will teach me enough to cobble together this application?

If you knew the tech, your app would take an afternoon.

You need to google for 'node.js express' for the tutorials you're looking for.

You could end up going down a rabbit hole with npm, bower, grunt/gulp, try to ignore doing anything with these but the very bare minimum.

Personally if I was to build this and I wanted to be super flexible and use node, I'd use an Angular form to talk to loopback.io that is working with an existing database. Built, test and live in a couple hours.
 
Status
Not open for further replies.