Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to convert Abp project in three different server. #3279


User avatar
0
velu created

We have three different servers.

  1. Database Server
  2. Application Server
  3. Web Server

In this environment Web Server cannot communicate with directly Database Server. It is communicate with Application Server.

Is it possible with ABP.

Please help us how to convert ABP with three different servers.


16 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    Which version do you use ? Angular1, Angular2, ASP.NET MVC & jQuery or ASP.NET Core & jQuery ?

    Thanks.

  • User Avatar
    0
    velu created

    <cite>ismcagdas: </cite> Hi @velu,

    Which version do you use ? Angular1, Angular2, ASP.NET MVC & jQuery or ASP.NET Core & jQuery ?

    Thanks.

    We are using ASP.NET MVC 5.x & Angularjs 1.x.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    Unfortunately, it does not support such an architecture.

  • User Avatar
    0
    velu created

    <cite>ismcagdas: </cite> Hi @velu,

    Unfortunately, it does not support such an architecture.

    Which project is support from below mentioned list?

    ASP.NET Core & jQuery ASP.NET Core & Angular 2+ NEW ASP.NET MVC 5.x & jQuery ASP.NET MVC 5.x & Angularjs 1.x

  • User Avatar
    0
    ultimatemm created

    Hi velu, if I am not wrong you can use this approach ASP.NET Core & Angular 2+ NEW

    thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ultimatemm,

    I also thought about angular2 version but it might not be convinient as well. If only app server has access to db server, then app server might not be open to internet and in that case angular app cannot access app server.

    But if this will be a locally hosted app, angular2 version might be used.

    Thanks.

  • User Avatar
    0
    velu created

    App server is not open to internet but Webserver and the App server is in the same network.

    Webserver - Hosted in the public network (In the demilitarized zone) Appserver - In the same network Database server -In the same network

    From the Webserver to the Appserver necessary firewall can get opened. From the Appserver to the Database server necessary firewall can get opened.

    In this case any luck in implementing the three tire architecture.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    If your Webserver can access to your Appserver, the it might work with angular2 version. I suggest you to download angular2 version of AspNet Zero and deploy it like this if possible without making any change and see if this scenario works for you.

    If it works, then you can start to develop your app or if you have already developed pages, you can move them to angular2 version but moving existing code will not be easy.

    Thanks.

  • User Avatar
    0
    velu created

    <cite>ismcagdas: </cite> Hi @velu,

    If your Webserver can access to your Appserver, the it might work with angular2 version. I suggest you to download angular2 version of AspNet Zero and deploy it like this if possible without making any change and see if this scenario works for you.

    If it works, then you can start to develop your app or if you have already developed pages, you can move them to angular2 version but moving existing code will not be easy.

    Thanks.

    Do you want to us to deploy the ASP.NET Core & Angular 2+ on both Web Server and Appserver.

    Please guide us in this...

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    After downloading ASP.NET Core & Angular 2+, you need to deploy it like this:

    1: Database Server: Create your db on this server 2: Application Server: Deploy *.Web.Host project to this server. 3. Web Server: Deploy angular client side project to this server.

    And see if it works like you want. If it works, you can continue.

    Thanks.

  • User Avatar
    0
    velu created

    I have downloaded DotNet Core and Angular 2.x template. I want to develop my project with following architecture

    1. Database Server
    2. Application Server
    3. Web Server

    Please guide me how to communicate to ABP project in three different server architecture

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    In order to publish your app (*.Web.Host) to Application Server, you just publish it just like another MVC applicaiton using Visual Studio.

    For Web Server (angular application), first run your project as explained here <a class="postlink" href="https://aspnetzero.com/Documents/Getting-Started-Angular">https://aspnetzero.com/Documents/Gettin ... ed-Angular</a>. After that you can publish your app using "ng build --prod" command. It will create published output to "dist" folder. You can copy content of dist folder to your web server.

    After publishing both applications, you just need to configure their configuration files. For host: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json">https://github.com/aspnetzero/aspnet-ze ... tings.json</a>

    ServerRootAddress: your host application address ClientRootAddress: your angular application address CorsOrigins: your angular application address

    For angular: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/assets/appconfig.json">https://github.com/aspnetzero/aspnet-ze ... onfig.json</a>

    remoteServiceBaseUrl: your host app address appBaseUrl: your angular app address

    Thanks.

  • User Avatar
    0
    velu created

    Hi,

    As per your suggestion we tried to configure the application but it fails, so please help us to resolve this issue. we get following error :-

    HTTP Error 403.14 - Forbidden

    The Web server is configured to not list the contents of this directory.

    Can i send my application to check this problem?

    Thanks,

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    Is your application is accessible on internet ? If so, If you can share it's url and login information we can take a look at it.

    Otherwise, we can try to help you with a remote connection.

  • User Avatar
    0
    velu created

    hi

    Our project is not available on internet ,we can have remote session on Monday. We can use team viewer to connect. Also suggest time for the session.

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    We are available between 09:00 to 12:00 (UTC+3). If you are not available today, we can do it tomorrow as well.

    It is better if you can send your availability to <a href="mailto:[email protected]">[email protected]</a>.

    Thanks.