Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAngular 2 SPA Integration with Custom DLLAngular 2 SPA Integration with Custom DLL
Previous
 
Next
New Post
3/9/2017 5:08 PM
 

I'm trying to add Ng2 modules to our DNN site. The design principle we are hoping to follow is to deploy each Ng2 module as a client only module which calls out to various WebApi REST URLs to get data as required (standard Angular use).

We will then develop a separate WebApi REST component, packaged into a DLL and deployed on the DNN IIS server. Essentially we are building our own micro-services which we would like to run in the DNN server. These will call out to the DAL libraries to use DNN functionality via the exposed APIs, but will also contain their own business logic, access and maintain their own data/db tables via Entity Framework, and potentially even call out to external Rest APIs.

Is this possible and has anyone tried anything similar? Is there a better way to do this?

So far, we have written a simple Ng2 module (HTML and JS only), and added it to a page. It works fine, even routing between modules and views without page refreshes. The next step to call out to a REST Api though is where we're not sure.

Where should the WebApi DLL be placed, how can we me DNN include it in the same server context and expose the REST URLs? We've experimented by placing it in the dnndev/bin folder but can't access the URL.

I suspect we have massively over simplified this so any advice or shared experiences would be appreciated! Thanks in advance.

 
New Post
3/11/2017 4:48 PM
 
Have you tried Chris Hammond's templates? https://github.com/ChrisHammond/DNNTe...

I successfully created an API-based SPA in Angular 1 using the template and the SPA accesses an API hosted in DNN. I hope that's what you mean by call out to a REST Api.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAngular 2 SPA Integration with Custom DLLAngular 2 SPA Integration with Custom DLL


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out