magosi

magosi

Designing a Shopify-like Saas website

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:

First Post! Switch mode

QuintinMakwe

QuintinMakwe

Hey,

These are good concerns.

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

Most Liked

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.

Last Post!

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?

Where Next?

Trending in Questions Top

jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
saveman71
Hello ! We want new/edit form pages to POST/PUT to their own URL rather than the resources REST defaults (post /things, put /things/:id)...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
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
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement