magosi

magosi

Ok, so I want to develop an ed tech Saas product that is similar to Shopify regarding features like every user having their own separate site (in Shopify it is a storefront). I have no idea where to begin (I don’t even know what they call these type of products) Here are my design/architectural uncertainties:

1.) How does the software work that enables each client of mine to have their own separate site (in Shopify’s case it is a storefront)? Obviously there is generic functionality, which is the essence of the product, but each user has their own running instance of this software/site and they can customise certain things like templates/markup, branding, settings, etc. How is this possible in Elixir + Phoenix? Should I develop a regular phoenix website (the core product) and then have a script to make a copy of that site for each user that signs up? Then I will have to manage many running instances of the same site essentially. Furthermore, how will the database (Ecto repo) and assets management work? For customers to change markup/templates/store appearance, assets have to be changed.

2.) How can I enable customers to “point” a domain name at their running instance/site so that they do not have to use it with my saas product’s domain? For instance, they register at mysaasproduct.com, but they want to use a custom domain that they bought for their site, even though it is hosted on our servers. How does that work?

3.) How can I make this system pluggable? For instance, the core product could perhaps be extended with a messaging/crm/analytics plugin that will be sold separately. What design patterns and considerations should I be aware of to build a system like this. I am especially confused about how a plugin that has its own ecto repo/tables can plug into a system (the core product/site) that already has its own repo/tables.

Please note that I am not a professional developer and all this is just an ambition and curiosity that I have. I am well aware that I will probably need assistance to build such a site, but I am looking for concrete examples and resources that show how a site like this works internally to start my research journey. If anyone is aware of such a codebase or has any experience that they would like to share, please do so.

Thank you all for your time to help a less experienced member :slight_smile:

Showing Posts 1 to 4

QuintinMakwe

QuintinMakwe

Hey,

These are good concerns.

Curious to know if you came around figuring out the solution?

derek-zhou

derek-zhou

The OP asked many broad questions that can’t be answered with a normal sized reply. for the smallest one:

If you want to point an apex domain name, the customer has to change the A DNS record. For subdomains, the common practice is to add a CNAME record.

thiagomajesk

thiagomajesk

IMHO: It seems to me that this question is more related to product building and architecture than Elixir or Phoenix. Therefore, I’d recommend that you ask those questions on Stack Overflow or Stack Exchange forums which are more generic in scope. I don’t mean to brush you off, but your question at least will have more visibility there and it’ll certainly maximize your chances of getting the responses you are looking for.

Like @derek-zhou pointed out, it’s very difficult to give practical advice considering such a broad scope. My recommendation to you would be to find literature on those topics and do a little bit of research on open source projects that work similarly to what you want to do.

josefrichter

josefrichter

I guess the one Phoenix-related bit is this: can I somehow handle in router a situation where instead of /customer/:customer_name I want to be able to access https://customer_name.example.com? What needs to be done on Phoenix side?

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews