<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Benny Chan</title>
    <description>The latest articles on DEV Community by Benny Chan (@bennyychan).</description>
    <link>https://dev.to/bennyychan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F414326%2F0c71a326-853d-4a88-9240-0b11abcb9b9e.jpeg</url>
      <title>DEV Community: Benny Chan</title>
      <link>https://dev.to/bennyychan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bennyychan"/>
    <language>en</language>
    <item>
      <title>How to build a fast Startup Name Generator with Vue?</title>
      <dc:creator>Benny Chan</dc:creator>
      <pubDate>Wed, 22 Jul 2020 10:25:57 +0000</pubDate>
      <link>https://dev.to/bennyychan/how-to-build-a-fast-startup-name-generator-with-vue-gff</link>
      <guid>https://dev.to/bennyychan/how-to-build-a-fast-startup-name-generator-with-vue-gff</guid>
      <description>&lt;h2&gt;
  
  
  Why?
&lt;/h2&gt;

&lt;p&gt;Inspired by &lt;a href="https://twitter.com/Baremetrics/status/1276543395008307201"&gt;a tweet of Baremetrics&lt;/a&gt; and my personal itch, I discovered there was a problem to find a suitable name. &lt;/p&gt;

&lt;p&gt;As a passionate maker, I always make many products. Naming is always difficult since you have to get a name which is easy-to-remember, short, domain-available, cheap domain. So I create 3sName to automate the task for me. &lt;/p&gt;

&lt;h2&gt;
  
  
  Why "3sName"?
&lt;/h2&gt;

&lt;p&gt;At first, I was thinking a generic name like xxxNameGenerator.com, "xxx" stands for "SaaS", "Startup", "Business", etc. However, it was too boring.&lt;/p&gt;

&lt;p&gt;The name is definitely good for SEO, good for Google indexing. But I want a name for human instead of machines&lt;/p&gt;

&lt;p&gt;So I was thinking for a fun name with the meaning of fast, easy-to-remember, short, domain is available, cheap domain, preferably in 2 voices.&lt;/p&gt;

&lt;p&gt;I was trying 10sName at the beginning (domain still available), coz 10s is easy to remember. However, 10s is quite slow in today's expectation. I tried 1sName, 2sName, 3sName, 5sName, etc. .name tld is also available but my target domains are not available. I tried for a while and gave up.&lt;/p&gt;

&lt;p&gt;Finally, I settled with &lt;a href="https://3sname.com/"&gt;3sName.com&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Plan
&lt;/h2&gt;

&lt;p&gt;The development plan is simple. I will create a static site as the frontend. When someone searches for a name, the app will perform a local search with the rules defined. The app will display the purposed names immediately. After that, it will call NameCheap API to get domain availability and prices. &lt;/p&gt;

&lt;p&gt;If the user likes the name, she can bookmark it temporarily and continue the search. &lt;/p&gt;

&lt;p&gt;The search results will be linked to NameCheap. If someone purchases a domain, I get a split for the order.&lt;/p&gt;

&lt;p&gt;There are mainly 2 parts:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.The Static Site&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The 3sName home page is built with simple HTML, js, css. For the frontend, I was thinking to use &lt;a href="http://bulma.io/"&gt;Bulma&lt;/a&gt;, &lt;a href="https://getbootstrap.com/"&gt;Bootstrap&lt;/a&gt; &amp;amp; &lt;a href="https://tailwindcss.com/"&gt;Tailwind CSS&lt;/a&gt;. For me, Bootstrap is obviously too heavy for a simple project like this. &lt;/p&gt;

&lt;p&gt;After that, I compared Bulma &amp;amp; Tailwind. Bulma provides some ready-to-use components for me to get started. Tailwind also provides Tailwind components. But the price is too expensive. It may be perfect for a SaaS app. &lt;/p&gt;

&lt;p&gt;For hosting, I use &lt;a href="https://vercel.com/"&gt;Vercel&lt;/a&gt;. It's free and fast. Perfect for indie makers. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.The API&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For calling &lt;a href="https://www.namecheap.com/support/api/intro/"&gt;NameCheap API&lt;/a&gt;, I need a web service to serve as the API proxy. The simple workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Call NameCheap API daily. Put the prices into Redis Cache&lt;/li&gt;
&lt;li&gt;When my Vue app call this API, provide the domain prices and availability &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After comparing the price of Heroku, Digital Ocean, and PythonAnywhere, I picked DO as the VPS. Heroku looks simple but the rate is too expensive. When I put a dev and prod service on it, the estimated cost will be $30 / m. Not cool for a simple API with 2 endpoints only.&lt;/p&gt;

&lt;p&gt;PythonAnywhere is also good. After testing, I can get Django up within 15 minutes. However, it doesn't provide Redis as the database. Only MySQL and PostgreSQL are available. If you don't need Redis, you can set up a Django project with cron jobs, database, SSL easily. Highly recommend for developers who don't want to mess with DevOps.&lt;/p&gt;

&lt;p&gt;So I set up a new $5 server running Docker Compose for nginx, Python / Django, Cron, and Redis. 1GB Ram is definitely more than enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works?
&lt;/h2&gt;

&lt;p&gt;Demo video: &lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/cxCaZcthBUw"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Launch and the result
&lt;/h2&gt;

&lt;p&gt;I launched &lt;a href="http://3sname.com/"&gt;3sName.com&lt;/a&gt; on Product Hunt last Thur (16/7/2020). Luckily, I can get on top 15th for the whole day. There were more than 700 visitors playing with my name generator. More than 170 upvotes were received. &lt;/p&gt;

&lt;p&gt;The result is absolutely satisfactory for a small project like this!&lt;/p&gt;

&lt;p&gt;If you're interested, feel free to give me feedback. I would be happy to hear from you!&lt;/p&gt;

&lt;h2&gt;
  
  
  The code
&lt;/h2&gt;

&lt;p&gt;Github: &lt;a href="https://github.com/sillycube/3sName"&gt;https://github.com/sillycube/3sName&lt;/a&gt;&lt;/p&gt;

</description>
      <category>startup</category>
      <category>vue</category>
      <category>businessname</category>
      <category>staticsite</category>
    </item>
  </channel>
</rss>
