<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[50k.tech - Medium]]></title>
        <description><![CDATA[A Product studio, under which we will be building, launching and marketing well-designed products targeted at enabling digital entrepreneurs to succeed - Medium]]></description>
        <link>https://medium.com/50k-tech?source=rss----bd8524aa1ae4---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>50k.tech - Medium</title>
            <link>https://medium.com/50k-tech?source=rss----bd8524aa1ae4---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:53:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/50k-tech" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[An open source boilerplate for you next SaaS product, written in django]]></title>
            <link>https://medium.com/50k-tech/an-open-source-boilerplate-for-you-next-saas-product-written-in-django-423c90160800?source=rss----bd8524aa1ae4---4</link>
            <guid isPermaLink="false">https://medium.com/p/423c90160800</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[boilerplate-code]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[sankalp jonna]]></dc:creator>
            <pubDate>Mon, 25 Mar 2019 11:21:14 GMT</pubDate>
            <atom:updated>2019-03-26T08:29:16.054Z</atom:updated>
            <content:encoded><![CDATA[<h3>An open source boilerplate for your next SaaS product, written in django</h3><p>While building our previous product SessionFox, we had to write a backend to handle common SaaS features such as users, subscriptions, plans, accounts, etc. Since we shut down, we decided to open source the SaaS backend for anyone to use. Fyi, you can find our other open source work <a href="https://50ktech.webflow.io/blog/an-open-source-boilerplate-for-you-next-saas-product-written-in-django">here</a>.</p><p>This article explains the database schema for any generic SaaS tool and the codebase for common APIs such as</p><ul><li><a href="https://github.com/sankalpjonn/simple-saas/blob/daaae14f0fce74f7fcf961d2eacea729c9fcb99b/saas/views.py#L43">Login</a></li><li><a href="https://github.com/sankalpjonn/simple-saas/blob/daaae14f0fce74f7fcf961d2eacea729c9fcb99b/saas/views.py#L62">Signup</a></li><li><a href="https://github.com/sankalpjonn/simple-saas/blob/daaae14f0fce74f7fcf961d2eacea729c9fcb99b/saas/views.py#L67">Reset Password</a></li><li><a href="https://github.com/sankalpjonn/simple-saas/blob/daaae14f0fce74f7fcf961d2eacea729c9fcb99b/saas/views.py#L48">Info about an invited user to pre-fill a signup form</a></li><li><a href="https://github.com/sankalpjonn/simple-saas/blob/daaae14f0fce74f7fcf961d2eacea729c9fcb99b/saas/views.py#L96">Invite team member</a></li><li><a href="https://github.com/sankalpjonn/simple-saas/blob/daaae14f0fce74f7fcf961d2eacea729c9fcb99b/saas/views.py#L84">Me</a></li></ul><p><a href="https://github.com/sankalpjonn/simple-saas"><strong>Link to Github repo</strong></a>‍</p><h3>Database models for SaaS</h3><p>To keep track of all the different registered businesses and the plans that those businesses are subscribed to, we need a schema that looks like this.</p><p>Each registered business might also have multiple users using that account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*lhEXn1egG6EIpHno.png" /></figure><p>We originally used this schema to build SessionFox which is a mobile app session recording tool that we wanted to sell as a SaaS and therefore designed our schema in this way.</p><p>I will now explain how you can extend each of these models for whatever SaaS you are building.‍</p><h3>Plan</h3><p>To store information about the different kinds of plans that the SaaS offers. You might want to offer a free plan with limited capabilities and one or more paid plans with additional functionality.</p><p>Beyond this, there could be more fields in this model depending upon the use case. In the context of SessionFox, we offered plans based on number of session recordings and number of applications, so the additional fields in the Plan model for SessionFox were</p><ul><li>Max recordings</li><li>Max applications‍</li></ul><h3>Subscription</h3><p>Represents a plan subscription by a business. It will therefore contain a reference to business and plan. Can be used to check if there is an active subscription present for a given business and if so, which plan is the business subscribed to.</p><p>Can also be used to renew, upgrade or deactivate a subscription based on the plan duration expiry, special credits for a particular business, etc.</p><p>Start time and End time represent one cycle of a plan. For instance, if a plan has a duration of 15 days, and the subscription began on the 15th of August, start time would be 15th of August and end time would be 30th of August.</p><p>There will be a periodic task that retrieves all subscriptions where end time has passed and based on the subscribed plan, this task will decide whether to renew the plan, or deactivate the subscription. For running periodic tasks, we use <a href="https://medium.com/greedygame-engineering/an-elegant-way-to-run-periodic-tasks-in-python-61b7c477b679">timeloop.</a></p><p>In the context of SessionFox, when a new business signs up, a subscription is automatically created with a free plan, and since most of the new signups were beta users, we needed a way to upgrade those users to an unlimited plan. To do this, we created an entry in the plan model called <em>unlimited plan </em>where max_recordings and max_applications was a huge number and changed their corresponding subscription model entry to reference the unlimited plan.</p><p>You can also use this model to store information that resets when a new plan cycle starts. For instance, in SessionFox once the business reached the max recording limit, we had to prevent any further recordings from that business. So we kept a field called current_recording_count in this model. This field is incremented whenever a new session recording is created and when it reaches the max limit of the corresponding plan, the recording API will return a response appropriately.</p><p>Since we were already running a periodic task to update the start time and end time of the subscription, we used the same task to reset the current_recording_count, so that for the next plan cycle, it starts from zero.‍</p><h3>Business</h3><p>Represents a subscriber of the SaaS tool.</p><p>Any additional fields that is specific to a business can be put in this model. For SessionFox, in order for the client to call the APIs, an API_KEY would be issued and this field can be set in the business model.‍</p><h3>BusinessTeamMember</h3><p>Now that we have all models required to track SaaS subscriptions for a business, we need a model to keep track of all the users that are accessing the product. These users could be</p><ul><li>Multiple team members from the same business</li><li>Bots</li></ul><p>Regardless of whether the user is a bot or a team member from the business, we need a way to define what permissions a particular user will posses. In the context of SessionFox, API calls need to be made to the server by the SDK as well as the dashboard. In order to do this, the SDK would be given an access token, but this access token should not posses permissions to access the dashboard APIs.</p><p>Restricting API access using permissions is something that is made quite trivial using django-rest-framework, which I will be talking about in detail in the later stages of this article.</p><p>There is also an activation_key in this model. This will come in handy when another team member is invited to use the account.</p><p>The invitee must be sent a link containing the activation key and opening this link must result in a redirection to the signup form which must be pre-filled with some of the existing information of the invitee including the business id by calling an API with the activation_key.</p><h3>Django make things easier, here’s how</h3><ul><li>Combined with django-rest-framework, API creation becomes very trivial</li><li>Easy to manage authentication and permissions using auth token.</li></ul><p>The database models mentioned above can be translated into django models like <a href="https://github.com/sankalpjonn/simple-saas/blob/daaae14f0fce74f7fcf961d2eacea729c9fcb99b/saas/models.py">this</a>.‍</p><h3>Managing users and permission</h3><p>The BusinessTeamMember model represents a single user. However there is no need to explicitly have fields for username and password. Instead we can use <a href="https://docs.djangoproject.com/en/2.1/topics/auth/default/#user-objects">django users</a>. This Model provided by django abstracts the user authentication system and it automatically stores passwords as hashes. The user can also be activated or deactivated by using the is_active field. Hence the BusinessTeamMember model can simply contain a foreign key to the django user model.</p><p>Using django rest framework, every django user created in the system can be assigned an access token, and if this access token is present in the header of an API call, django-rest-framework automatically queries the user to which this token belongs and attaches it to the API request. You can find out more about django-rest-frameworks authentication system <a href="https://www.django-rest-framework.org/api-guide/authentication/">here</a></p><p>Now we need a mechanism to have different access control on different APIs. This is done using django-rest-frameworks <a href="https://www.django-rest-framework.org/api-guide/permissions/">permissions</a><strong>.</strong> An API can be defined as follows</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aff154e494356cebfd7f68a1741f9636/href">https://medium.com/media/aff154e494356cebfd7f68a1741f9636/href</a></iframe><p>For SessionFox, we needed a way for our staff to login to any of the business’ account for Support/QA purposes. We also needed a user that can make API calls from the SDK. To do this, for every signup instead of creating a single BusinessTeamMember, we create 3 as shown below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ed43e2e3a068ec21ac3d4a1875b8e87/href">https://medium.com/media/6ed43e2e3a068ec21ac3d4a1875b8e87/href</a></iframe><p>The auth token of the sdk_user is what we give out to a business as their API_KEY once they finish the signup process. They will then include this API_KEY in the manifest file of their Android app. And since we will restrict the permissions of an SDK user, even if this API_KEY gets leaked, no real damage can be done.</p><p>If a user needs to invite other users to use the account, we can simply expose an API that creates a new BusinessTeamMember with an activation key that is then mailed to the invitees. Once the invitee confirms activation from his mailbox, the is_active field in the user model can be toggled and a new user in the system is created.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4dce3d4c161c1fecfde94f77f5126a5c/href">https://medium.com/media/4dce3d4c161c1fecfde94f77f5126a5c/href</a></iframe><p>If the invitee clicks on the activation link, he can be redirected to the signup form where the email address is pre-filled and the activation key is kept hidden. In order to pre-fill the form, an API can be called with the activation_key in the query params as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/896b9c7a8f4870775486acb3d2725c72/href">https://medium.com/media/896b9c7a8f4870775486acb3d2725c72/href</a></iframe><p>When signup API is called, instead of following the regular signup flow, since this user already exists and only needs to be activated and have the password changed, you can do the following -</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/65f711cc8564baa9198c0ea97b47d422/href">https://medium.com/media/65f711cc8564baa9198c0ea97b47d422/href</a></iframe><h3>Business logic inside serializers</h3><p>Django-rest-framework enables you to</p><ul><li>Validate request data</li><li>Run business logic for the API</li><li>Serialize response</li></ul><p>And the best part is that all the above three operations can be encapsulated inside a serializer class. If the API inherits CreateAPIView, first validate() method inside the serializer is called to check if the incoming request is valid or not, after this create() method is called with the validated data as the input. Therefore all business logic can be kept inside create(). And any additional validations that need to be done on the request can be inside validate().</p><p>If a validate() returns a validation error, a 400 response code is automatically sent.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/66f3ec91757be85b9317888648e0d607/href">https://medium.com/media/66f3ec91757be85b9317888648e0d607/href</a></iframe><h3>Subscribe for more</h3><p>If you’ve read until this point, I thank you for your time and patience. Subscribe to our newsletter down below and we will keep you posted on our adventures!</p><figure><a href="https://tech.us20.list-manage.com/subscribe?u=b0842bd84c8610dcbfba24a4a&amp;id=6c2663d486"><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Yp4ioJReoZrH5lrkjLe2uQ.png" /></a><figcaption>Read about our struggles and hardships, new launches, successes and failures, business learnings, open source code that we publish, and everything else in between from the team at 50k.tech as we march towards our goal of earning $50k in MRR.</figcaption></figure><p>And if you have any feedback or thoughts, you can reach us <a href="https://twitter.com/hipreetam93">@s</a>ankalpjonna or <a href="https://twitter.com/sankalpjonna">@</a><a href="https://twitter.com/hipreetam93">hipreetam93</a>. We would love to chat :)</p><p><em>Originally published at </em><a href="https://www.50k.tech/blog/an-open-source-boilerplate-for-you-next-saas-product-written-in-django"><em>www.50k.tech/blog</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=423c90160800" width="1" height="1" alt=""><hr><p><a href="https://medium.com/50k-tech/an-open-source-boilerplate-for-you-next-saas-product-written-in-django-423c90160800">An open source boilerplate for you next SaaS product, written in django</a> was originally published in <a href="https://medium.com/50k-tech">50k.tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing 50k.tech]]></title>
            <link>https://medium.com/50k-tech/introducing-50k-tech-7db229da6ecd?source=rss----bd8524aa1ae4---4</link>
            <guid isPermaLink="false">https://medium.com/p/7db229da6ecd</guid>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Preetam Nath]]></dc:creator>
            <pubDate>Mon, 25 Mar 2019 11:17:54 GMT</pubDate>
            <atom:updated>2019-03-25T12:56:50.218Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>We are launching a Product studio</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*HqU8gdNT6zxHDmFyjVjQrQ.gif" /></figure><p><a href="https://github.com/sankalpjonn"><em>Sankalp</em></a><em> and </em><a href="https://www.linkedin.com/in/nathpreetam"><em>Preetam</em></a><em> are building a new company. Through this post, we would like to introduce ourselves, explain the work we will be doing at our company, our story so far and what got us here, long-term goals, and what to expect in the coming months. We will be writing more about our experiences as we progress in our journey, so we would love for you to subscribe and join us for the ride!</em></p><h3>Tl;dr</h3><p>We’re launching a Product studio called <a href="https://50k.tech/">50k.tech</a>, under which we will be building, launching and marketing well-designed products targeted at enabling digital entrepreneurs to succeed.</p><h3>Who are “we”?</h3><p><strong>Sankalp</strong> is a full stack engineer with 5 years of experience building apps and backend for a multitude of startups in Bangalore. His code supports millions of API calls every day. Reach him on <a href="https://twitter.com/sankalpjonna">Twitter</a> or <a href="/service/mailto:sankalp@50k.tech">Email</a>.</p><p><strong>Preetam</strong> has helped grow products in Ed-tech, E-commerce, Recruitment, Hyperlocal and F&amp;B markets to millions of users over the past 4 years. He consults with companies helping them overcome Product and Growth problems. Reach him on <a href="https://twitter.com/hipreetam93">Twitter</a> or <a href="/service/mailto:preetam@50k.tech">Email</a>.</p><p>We both want to learn how to market digital products, and turn them into profitable businesses that can support our lifestyle, and some more.</p><p>Fun fact, both Sankalp and and Preetam studied at the same college (<a href="https://en.wikipedia.org/wiki/Manipal_Institute_of_Technology">MIT, Manipal</a>) one year apart, but didn’t know each other until they worked at Goodbox in 2016.</p><h3>What is 50k.tech?</h3><p>We are a Product studio, but that’s just a term we’re using. What’s important to know is:</p><p><strong>50k.tech builds products</strong> with the aim of turning them into profitable businesses within 0–6 months of launch. We will also launch simpler (code and no-code) and free products that will serve as distribution channels to help our other ideas succeed.</p><p><strong>50k.tech is a product agency</strong> where we will be partnering with online businesses to build and develop specific solutions for them. We intend to work with businesses that sell software (think SaaS) as well as non-software products (think e-commerce).</p><p><strong>50k.tech is a creative outlet</strong> for us to publish content containing learnings from our journey that may be of use to others facing similar problems, release open source code to help other creators develop faster and more easily, create information products and much more. We have tons of ideas, and we are no longer stressing ourselves to produce a business forcibly. We want to fall in love with product building again, and have fun while we’re at it!</p><p><strong>50.tech is a team</strong> that will build digital businesses — apps and websites — with the aim of turning them profitable within 0–6 months of launch. Our vision is to help internet entrepreneurs overcome hurdles to grow their businesses. Right now, it’s just the two of us, and that’s because we are perfectly aligned on our long-term goals. We might find more partners to join us in the future, but we will get there when we get there.‍</p><h3>Who do we serve?</h3><p>Seth Godin taught me to be clear on who you serve, before you delve into their problems and start building solutions to solve them.</p><p>We’ve been flirting with the thought that we want to serve other people like ourselves, running their own businesses on the internet. These could be software or non-software businesses. As of now we haven’t narrowed down any further. It’s just a bunch of thoughts.</p><p>Like we mentioned earlier, it could be SaaS or E-commerce type businesses. We will explore these audiences and narrow down as we learn more about them. But for now, it’s quite a broad landscape.‍</p><h3>Our story so far, and what got us here</h3><p>In the past, we worked together on a side project called SessionFox, which was an SDK that enabled screen recording on any Android app. After building an MVP and getting beta users, we took a hard decision to shut down after learning about the market, the problems that we could solve, and the future of such a tool in an increasingly privacy-conscious world. We will share learnings about from it and other ventures in future blog posts.</p><p>During our time dabbling in startups, we learnt a few lessons about the nature of businesses, venture capital, the importance of market first, and several other things. We were also quite burnt out working for others, and wanted to give ourselves the opportunity and room to do interesting things. We want to bootstrap our way to success, and we don’t mind if in the end we only build a $1mn ARR product, because even that would be a “very successful” outcome in our books.</p><h3>Long-term goals</h3><p>Every business exists to make money, and so do we. We want to learn the art of building profitable online businesses. In the long-term, we find alignment with the idea of helping other internet entrepreneurs succeed in their ventures. But we may not always build and launch products that fit under that bill.</p><p>We have milestones, our first one being hitting $10k in MRR before the end of 2019, and $50k in MRR before the end of 2020.</p><p>Both of us have quit our jobs and are working full-time at 50k.tech, therefore our livelihoods depend on the success of our products. However, we have sufficient runway that gives us a cushion to not make hurried decisions and get into something with half-baked interest or research. We have first-hand experienced that in the past, and we don’t want to go down that road ever again.</p><h3>Product #1, #2 and what’s in store for the coming months‍</h3><h4>Product #1 — WhatsApp Chat Button</h4><p>Our first product is ridiculously simple, it’s an app that adds a configurable <strong>WhatsApp Chat Button</strong> to any e-commerce store hosted on Shopify. We thought to start experimenting with the e-commerce entrepreneur audience since we already had prior knowledge about Shopify. Our app is undergoing review and should be live in about 2 weeks.</p><p>You can find all our apps <a href="https://50k.tech/apps">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TDOmxHqISs_AequS.png" /></figure><h4>Product #2 — SaaS boilerplate in Django</h4><p>We have also released an <a href="https://50k.tech/blog/an-open-source-boilerplate-for-you-next-saas-product-written-in-django"><strong>Open Source SaaS boilerplate written in Django</strong></a>, which was first built for our previous product SessionFox. The purpose of the boilerplate is for any developer to quickly add login, signup, reset password, invite team member, and me (retrieve user info) functionality to their SaaS application without writing code from scratch. We’ve also written an article explaining the approach and the implementation.</p><p>You can find all our open source work <a href="https://50k.tech/open-source">here</a>.</p><h4>Coming months</h4><p>We’re going to launch a host of information products and simple applications. In the immediate weeks, we will launch resources that are helpful for Shopify store owners to succeed in their business. We even have a chrome extension in the pipeline. Subscribe to our newsletter to be informed of our new launches.‍</p><h3>Public roadmap</h3><figure><a href="https://trello.com/b/2kqifvEI/50ktech-public-roadmap"><img alt="" src="https://cdn-images-1.medium.com/max/800/0*1O58tSsDgLJWHQdK.png" /></a><figcaption><a href="https://trello.com/b/2kqifvEI/50ktech-public-roadmap">Link to Trello Board</a></figcaption></figure><p>The best ideas can come from anywhere, it can even come from you! That’s why we decided to make our roadmap public. We would love to hear your comments and product suggestions. Do drop by :)‍</p><h3>What’s with the name?</h3><p>I can’t even begin to tell you how bad we are at naming our products. It’s laughable, we’re aware of it, and we will get better at it in good time. Since we already know our limits to coming up with good names, we didn’t stress too much.</p><p>Often times, we had discussed $50k MRR as a magical milestone that we would be grateful so many times. Combine that with a blog post I came across a founder who named his company (close.io) in such a way that whenever it is mentioned online, it tends to becomes a clickable link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*5wEPqlV3ksa_ZyJ3.jpeg" /></figure><p>We also wanted our name to be short and memorable, so that we can easily communicate it verbally or orally.</p><p>A few minutes of brainstorming later, 50k.tech was born. We bought the domain and sealed the deal right away.</p><p>‍</p><h3>Subscribe for more</h3><p>If you’ve read until this point, I thank you for your time and patience. Subscribe to our newsletter down below and we will keep you posted on our adventures!</p><figure><a href="http://eepurl.com/glxWm1"><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Yp4ioJReoZrH5lrkjLe2uQ.png" /></a><figcaption>Read about our struggles and hardships, new launches, successes and failures, business learnings, open source code that we publish, and everything else in between from the team at 50k.tech as we march towards our goal of earning $50k in MRR.</figcaption></figure><p>And if you have any feedback or thoughts, you can reach us <a href="https://twitter.com/hipreetam93">@hipreetam93</a> or <a href="https://twitter.com/sankalpjonna">@sankalpjonna</a>. We would love to chat :)</p><p><em>Originally published at </em><a href="https://www.50k.tech/blog/introducing-50k-tech-product-studio"><em>www.50k.tech/blog</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7db229da6ecd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/50k-tech/introducing-50k-tech-7db229da6ecd">Introducing 50k.tech</a> was originally published in <a href="https://medium.com/50k-tech">50k.tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>