<?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[Stories by Thiago on Medium]]></title>
        <description><![CDATA[Stories by Thiago on Medium]]></description>
        <link>https://medium.com/@thiagosouza87?source=rss-3ec384c91937------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TqF7nHJRwxG60JhtrsgO2A.jpeg</url>
            <title>Stories by Thiago on Medium</title>
            <link>https://medium.com/@thiagosouza87?source=rss-3ec384c91937------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 12:40:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thiagosouza87/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MVP Blockchain using a Serverless infrastructure]]></title>
            <link>https://medium.com/@thiagosouza87/mvp-blockchain-using-a-serverless-infrastructure-db074e675616?source=rss-3ec384c91937------2</link>
            <guid isPermaLink="false">https://medium.com/p/db074e675616</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Thiago]]></dc:creator>
            <pubDate>Mon, 22 Jul 2019 11:59:16 GMT</pubDate>
            <atom:updated>2019-07-22T11:59:16.513Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to create an Ethereum wallet via Node.js using a Serverless infra</h4><blockquote>This article is an attempt of sharing more stuff online, helping the crypto community and spread the word! I know it is a little bit longer, so please be patience and keep in mind it is a complete guide to your first MVP running <em>Blockchain</em> on a <em>Serverless</em> infrastructure, i.e., it is a whole new stack and surely will be difficult if your not familiarized with all the underlying technology.</blockquote><pre>¯\_(ツ)_/¯</pre><h4>0.1 Node.js, nvm, npm setup</h4><p>Before anything, let’s configure Node.js environment, I recommend never install node directly, bu instead, using nvm (node version manager).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd3b19d8e6ec3c4b1609dbd0d8e9bcdd/href">https://medium.com/media/dd3b19d8e6ec3c4b1609dbd0d8e9bcdd/href</a></iframe><h3>1. Firebase Project Setup</h3><p>Visit <a href="http://console.firebase.google.com/">console.firebase.google.com</a> and create your first project. After creating it you should see some page just like that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7kDD-nJ0Ar4FQ-ogJiGgwQ.png" /></figure><p><a href="https://console.firebase.google.com/project/mvp-blockchain-serverless/overview">https://console.firebase.google.com/project/mvp-blockchain-serverless/overview</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nhpt87OnIqJ9vrNGpki7EQ.png" /></figure><p>At this point you should also be able to see your project in Google Cloud Console, that is more advanced.</p><p><a href="https://console.cloud.google.com/home/dashboard?project=mvp-blockchain-serverless&amp;folder=&amp;organizationId=">https://console.cloud.google.com/home/dashboard?project=mvp-blockchain-serverless&amp;folder=&amp;organizationId=</a></p><blockquote>There are a lot of reasons for using Google Firebase. I’ll dig into this questions latter. For now just assume Firebase is one of the best serverless platforms without asking too much.</blockquote><h4>1.2 Notes about Pricing</h4><p>Visit pricing and try to understand the business model for serverless projects on Google Firebase. If you’re familiarized with AWS, Azure or some other cloud provider it should be easy to understand how cheap is to use Firebase</p><p><a href="https://cloud.google.com/functions/pricing">Pricing | Cloud Functions Documentation | Google Cloud</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*4D1vquvUZIA56vJG93oE-A.png" /></figure><h4>1.5 Firebase via CLI</h4><p>Once you created your project you’re able to start managing it via terminal.</p><p>#<a href="https://firebase.google.com/docs/functions/get-started">https://firebase.google.com/docs/functions/get-started</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca883088d7da7e3914d42478387ea62f/href">https://medium.com/media/ca883088d7da7e3914d42478387ea62f/href</a></iframe><p>After this point you’re ready to create and deploy your first functions</p><p>It is important to focus here in what is happening when you login. When you sign in with your Google Account and accept the permissions for manage your projects the browser returns a token to the CLI.</p><p>You could see this token by using:</p><pre><strong>firebase login</strong>:<strong>ci</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*nTA7ej0caxqzTUy0nLIkeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*qVLNXVcKHDVfnLr9xuX9ng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*w07_H0_kGCJ3q-1m55Mv7g.png" /></figure><p>&lt;- Firebase CLI refereces at <a href="https://firebase.google.com/docs/cli/">https://firebase.google.com/docs/cli/</a></p><h3>Functions</h3><p>You can creating functions scaffolds with this command:</p><pre>firebase init funcions</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*iQQeF-QjfdN-dAKhzfrMaA.png" /></figure><h3>Firebase Function to create a Ethereum Wallet</h3><p>Now that we have the environment fully created let’s create our first function for generating a user wallet for every user created on the Database.</p><p>Basic code bellow and full code here on this commit <a href="https://github.com/thiagosouza/mvp-blockchain-serverless/commit/864e24c1709dee38d839bfada96c9ee41b918d37">https://github.com/thiagosouza/mvp-blockchain-serverless/commit/864e24c1709dee38d839bfada96c9ee41b918d37</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d30a46595e8f8b332e8525d014426518/href">https://medium.com/media/d30a46595e8f8b332e8525d014426518/href</a></iframe><h4>Deploying your functions:</h4><p>Deploying the functions is easy as this:</p><pre>firebase deploy — only functions:ethereum </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*VQmzgRD5Vh2zHlaH2hu6ew.png" /></figure><p>After deploying your functions you can check’em out via:</p><ul><li>Firebase Console (<a href="https://console.firebase.google.com/u/0/project/mvp-blockchain-serverless/functions">https://console.firebase.google.com/u/0/project/mvp-blockchain-serverless/functions</a>)</li><li>Google Cloud Console (<a href="https://console.cloud.google.com/functions/list?project=mvp-blockchain-serverless&amp;folder&amp;organizationId">https://console.cloud.google.com/functions/list?project=mvp-blockchain-serverless&amp;folder&amp;organizationId</a>)</li></ul><h3>Trying (I will put a gif later!)</h3><p>Open the database screen and create an object on the users namespace</p><p><a href="https://console.firebase.google.com/u/0/project/mvp-blockchain-serverless/database">https://console.firebase.google.com/u/0/project/mvp-blockchain-serverless/database</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*BFmvdMMn3tgQvqSN0GPgiA.png" /><figcaption>create a new user object on Firestore (NoSQL) Database (it will call the function we just generated)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qyCVfZrqirTi4gWcoNb9jg.png" /><figcaption>The database tirggers the function who creates the Ethereum wallet and saves it again on the same database reference</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*R0fgBioOmt1ewrUg.gif" /><figcaption>The final exciting result you can see in realtime looking at the database!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*jaXEnuF2cPNIe_S-3cbDFg.png" /></figure><p>I recommend this great article explaining in detail “<a href="https://medium.com/@julien.maffre/what-is-an-ethereum-keystore-file-86c8c5917b97">What is an Ethereum keystore file</a>?”</p><p><a href="https://medium.com/@julien.maffre/what-is-an-ethereum-keystore-file-86c8c5917b97">https://medium.com/@julien.maffre/what-is-an-ethereum-keystore-file-86c8c5917b97</a></p><p><a href="https://medium.com/@julien.maffre/what-is-an-ethereum-keystore-file-86c8c5917b97">What is an Ethereum keystore file?</a></p><h3>Next steps.</h3><p>Now that we handle the back-end part, let’s move on to the front-end by using web3 and interacting with a contract.</p><h3>Basic Token</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*AUjohxBwmK5vdIcNA0-iJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dS5fkYqZavu88gmEX4BcYg.png" /></figure><p>&lt;- Link to the full code <a href="https://gist.github.com/thiagosouza/8a4f8895dc5d3f04dce6d9312ca43d20">https://gist.github.com/thiagosouza/8a4f8895dc5d3f04dce6d9312ca43d20</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db074e675616" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Falando Sozinho]]></title>
            <link>https://medium.com/@thiagosouza87/falando-sozinho-c747d4602afb?source=rss-3ec384c91937------2</link>
            <guid isPermaLink="false">https://medium.com/p/c747d4602afb</guid>
            <dc:creator><![CDATA[Thiago]]></dc:creator>
            <pubDate>Mon, 02 Feb 2015 11:35:53 GMT</pubDate>
            <atom:updated>2015-02-02T11:35:53.794Z</atom:updated>
            <content:encoded><![CDATA[<ul><li><a href="http://falandosozinho.com/hello-world">Hello world!</a></li><li><a href="http://falandosozinho.com/slow-web">Slow web</a></li><li><a href="http://falandosozinho.com/manual-do-usuario">Manual do Usuário</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c747d4602afb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>