TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you handle white-labeling product from a technical perspective?

6 点作者 bradleyjoyce超过 9 年前
My company provides a service to large commercial real estate companies that has both a mobile app client as well as a web app client for utilizing the service. Many customers and prospects are asking us for the ability to white-label everything so they can maintain their branding. We've resisted this so far, but the requests are getting to the point where we need to seriously consider going down that road. My question to you all is, how do you handle the white-labeling from a technical standpoint, especially when it comes to code management and release management? Thanks in advance for any insights/tips.

4 条评论

aspratley超过 9 年前
I&#x27;ve done this on a small scale for web, never for mobile&#x2F;apps though. My approach was a git repo containing the main code then a branch for each brand which only had config changes. It works ok but gets difficult to manage once your size grows - it&#x27;s essentially using git as the build tool.<p>If I were to do it again I&#x27;d likely not use the branches for branding config, but keep them all in one place and use a build tool to make sure the required settings are in place and merged before deployment. As long as you tag your releases you can fix certain clients to certain releases.<p>Make sure you talk to your clients about what their branding requirements are. Some companies get very very specific about what they &#x27;need&#x27; and as soon as you offer the ability to customise something they can get irritated if their brand doesn&#x27;t look quite right. As others have said make all of these customisations part of a config file and just reference that in your code. Once you start making specific changes for a client your life becomes difficult and you end up managing a specific bunch of code just for them.<p>You didn&#x27;t say if the white labeled app would be a public download of it it&#x27;s intended for company staff. If it&#x27;s the latter you can probably have a single app that gets configured on the first start up, i.e. it&#x27;s blank when you open it, sign in and it pulls in the required config and then takes on the customer&#x27;s brand.
koichirose超过 9 年前
We&#x27;ve been doing this for a while for a website that receives not too much traffic:<p>- we use a single server and the domain name determines which white label we are on.<p>- we use LESS and everything is variable. We load a single compiled CSS based on the domain.<p>- we never hard code anything, unless we know it&#x27;s a single page for a single domain (everything is internationalized).<p>- the database contains everything and we filter out stuff a particular white label doesn&#x27;t want.<p>This is because the website displays content (it&#x27;s not a service like shopify) and most white labels want most of our editorial content, so syncing DBs is not an option (is it?). We have 40+ white labels and unless the customization is heavy we can create a new one in a matter of minutes.
amk_超过 9 年前
Disclaimer: I&#x27;ve never done this before, but this is what I&#x27;d do.<p>Approach branding in the same way as internationalization. Instead of hardcoding strings, reference a config file that translates the logo&#x2F;brand names&#x2F;color scheme for the specific deployment. Look into how Shopify does this for their customers.
评论 #11095641 未加载
gonyea超过 9 年前
You&#x27;ll have to. Stop resisting. Follow the money and build a platform others can use and the company can sell.<p>White labels are fairly easy. As another poster mentioned, use internationalization tools for branding language. Create layouts specific to each partner and namespace assets in a folder.<p>Setup a subdomain for each partner and you&#x27;re done. It&#x27;s not hard at all if you&#x27;re using a framework like Rails.