Base solution for your next web application
Open Closed

Landing Page and Public Interface in Angular #1361


User avatar
0
arslanali created

Hi there, I want to create a public interface of the application where the public users (customers) can come and put up their inquiries. There will be different tenants (suppliers), and their users will be catering the public inquires. I want a little help here in customizing the abp and aspnetzero architecture.

Step1: How can i create an entity for public users. should i create it as host user and handle the default permissions? If so then i will have to allow creation of self host accounts, which is again an issue. should i create a default tenant and create all public users as users to this tenant and create different features or edition etc?

Step2: Can you share some common steps to convert the landing page area into a small Angular App so that public users can view their history related data. I want to utilize the Abp service injection to get and set data into db for public users.


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

    Hi,

    1 ) Why don't you create another Entity for public users, for example PublicUser ? Do you need to check some permissions for public users ?

    2 ) You can create an angular app similar to one defined in app.js. Just copy it, change name from "app" to something else. Remove unnecessary lines. Use it in the html file of public page like

    <html lang="en" data-ng-app="publicApp"
    

    of course you need to include angular.js and other angular javascript files you will be using in your new public angular app into public html page.

  • User Avatar
    0
    arslanali created

    Well I can make use of another entity bUT what about the filters like IMusthave tenant, the abp framework for handling cookies and all. There will be no permissions requirement for now, but I will be saving basic user settings, a little transaction history, managing notifications and messages between the public users and tenant users and saving logs for capturing user experience.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I thought regular User and public User as a different concept of your domain. But of course you know your domain best :).

    Are your public users related to tenants ? I'm asking because you have mentioned IMustHaveTenant filter.