Multi site one App

asdriel

Member
Apr 26, 2019
198
17
18
www.bantu-2rsn.com
What we are trying to do now is to create a new website that shares the same catalog as the current website (database).
we have a sales website

and we intend to generate an app for this new site that will consume the existing database.

On the new website, PRODUCTS WILL NOT BE PUBLISHED, NOR CHANGED, NOR MANAGED. It will be just a website to BUY.

How can we do it?
 

rasesh

New member
Sep 26, 2019
13
5
3
What we are trying to do now is to create a new website that shares the same catalog as the current website (database).
we have a sales website

and we intend to generate an app for this new site that will consume the existing database.

On the new website, PRODUCTS WILL NOT BE PUBLISHED, NOR CHANGED, NOR MANAGED. It will be just a website to BUY.

How can we do it?
What you can do is you can use the old database tabe (product table) for your new website.
In your new website you will use product table only retrieve the data.
If you are selling those products you have to make a new table naming sales (any name) to record the sales.
hope this helps.
 
  • Like
Reactions: asdriel

asdriel

Member
Apr 26, 2019
198
17
18
www.bantu-2rsn.com
I intend to create a new site to consume the products table and finalize purchases because the current site is slow, the idea is to improve the performance of the site in this way, consuming only the products that are at the base of the previous site and allow the purchase, and generate a app of this new lighter version
 

tradesman

Well-known member
Mar 9, 2020
367
225
63
Cold North
You need to provide more info than that like your backend, the full stack.

If you're in WP then I could suggest headless WP + React/Vue. You'd need to play around with REST-API a bit
 
  • Like
Reactions: ckeeper and asdriel

ckeeper

Well-known member
Nov 8, 2019
623
376
63
I intend to create a new site to consume the products table and finalize purchases because the current site is slow, the idea is to improve the performance of the site in this way, consuming only the products that are at the base of the previous site and allow the purchase, and generate a app of this new lighter version
Here is what I understand from your dilemna, you have a site you sell some products but it is slow, and you want to speed up the site by creating a second sales site, instead of looking at the source of the problem, seems like you are trying to build on top of your problem. All the suggestions above are good but will be relatively complex and costly solutions. Why not solve your problem instead of building on top of it, you can use loadbalancers to promote auto scaling and reduce the load on one server, it will be duplicated as many as required depending on your traffic hits, you will never experience any slow speeds again. My 2 cents.
 
  • Love
  • Like
Reactions: Mr G and asdriel

asdriel

Member
Apr 26, 2019
198
17
18
www.bantu-2rsn.com
Here is what I understand from your dilemna, you have a site you sell some products but it is slow, and you want to speed up the site by creating a second sales site, instead of looking at the source of the problem, seems like you are trying to build on top of your problem. All the suggestions above are good but will be relatively complex and costly solutions. Why not solve your problem instead of building on top of it, you can use loadbalancers to promote auto scaling and reduce the load on one server, it will be duplicated as many as required depending on your traffic hits, you will never experience any slow speeds again. My 2 cents.
I completely agree, unfortunately the customer doesn't want to understand it that way.
 

ckeeper

Well-known member
Nov 8, 2019
623
376
63
I completely agree, unfortunately the customer doesn't want to understand it that way.
Just FYI, I had these kind of difficult customers, best way to handle them is to explain you can actually save big by applying loadbalancers with auto scale up/down depending on the traffic, the way they are insisting requires dedicated resources without down scaling, which means will be costing them more in the long run. Try explaining it this way and let me know if it worked for you. ;)
 

tradesman

Well-known member
Mar 9, 2020
367
225
63
Cold North
I completely agree, unfortunately the customer doesn't want to understand it that way.

Customer's from hell, yeah they're real PIA. I agree with @ckeeper 's solution, it's more efficient. But IF they insist then offer the React frontend solution. Charge him more, then subcon the project for less. They can re-use the code on thousands of domains and subdomains (exaggeration), but they'll call you back again because they want to add something or they need to update the hero for a new promotion. If they have 10 websites that's 10X income for you :eek:
 
  • Haha
  • Like
Reactions: ckeeper and asdriel

asdriel

Member
Apr 26, 2019
198
17
18
www.bantu-2rsn.com
Customer's from hell, yeah they're real PIA. I agree with @ckeeper 's solution, it's more efficient. But IF they insist then offer the React frontend solution. Charge him more, then subcon the project for less. They can re-use the code on thousands of domains and subdomains (exaggeration), but they'll call you back again because they want to add something or they need to update the hero for a new promotion. If they have 10 websites that's 10X income for you :eek:
Unfortunately, I'm not a React Dev.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu