<?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 Athithan Raj P on Medium]]></title>
        <description><![CDATA[Stories by Athithan Raj P on Medium]]></description>
        <link>https://medium.com/@pathithanraj-rthoughts?source=rss-4c6a12eb95f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*H7nL3CQtqKzNDe-j_hVGwQ.jpeg</url>
            <title>Stories by Athithan Raj P on Medium</title>
            <link>https://medium.com/@pathithanraj-rthoughts?source=rss-4c6a12eb95f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 17:21:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pathithanraj-rthoughts/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[Step by step guide on how port from AWS to Nimbella]]></title>
            <link>https://medium.com/nimbella/step-by-step-guide-on-how-port-from-aws-to-nimbella-676a77ce9b78?source=rss-4c6a12eb95f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/676a77ce9b78</guid>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[openwhisk]]></category>
            <category><![CDATA[nimbella]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Athithan Raj P]]></dc:creator>
            <pubDate>Thu, 17 Jun 2021 06:54:17 GMT</pubDate>
            <atom:updated>2021-06-17T06:54:17.307Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*pXboU0on-Eq8qSoygk-4tQ.png" /></figure><p>In this article, we shall walk you through how Nimbella can fill up the space of AWS Lambda as an alternative and how you can port your functions to Nimbella.</p><ul><li><a href="#4018">Pros of Nimbella over AWS</a></li><li><a href="#e010">Try Nimbella’s platform with a real example</a></li><li><a href="#92bb">Basic architecture on Nimbella</a></li><li><a href="#f2ee">Directory Structure on Nimbella</a></li><li><a href="#69e6">Port your AWS Lambda functions to Nimbella</a></li><li><a href="#11c2">Benefits of Nimbella over AWS-lambda limitations</a></li><li><a href="#5ee8">Conclusions</a></li></ul><p>AWS is the largest public cloud provider — but that doesn’t make it easy to use!<br><strong>It can be challenging to work with because:</strong></p><ol><li>AWS is confusing for developers without deep experience in low-level cloud technologies.</li><li>Businesses have to pay a hefty amount to get technical support from AWS.</li><li>AWS Pricing is fiendishly complex and difficult to predict. Also, it doesn’t allow you to set a hard spending limit.</li><li>Need a credit card to sign-up.</li></ol><p><strong>Giuseppe Miragliotta,</strong> Backend Software Engineer at Xtream</p><blockquote>AWS Lambda’s pay-per-use pricing model is ideal for sporadic usages because you’re never paying for over-provisioned infrastructure. On the other end, costs can sum up rapidly on highly intensive workloads since these kinds of resources are expensive. Nimbella can help you save costs by using LaaS or CaaS services that are cheaper than FaaS, providing a proven and actively maintained architecture.</blockquote><blockquote>Backed by <a href="https://openwhisk.apache.org/">Apache OpenWhisk</a>, an open-source serverless solution, Nimbella comes with a high degree of portability. This means that the cost of moving to another cloud provider is greatly reduced and a multi-cloud strategy is also feasible, letting you choose the best products that suit your needs.</blockquote><p>All these urge many users to look for the best AWS alternative which eventually <strong>gets them away from AWS Cloud lock-in</strong>.</p><h4><strong>Pros of Nimbella over AWS</strong></h4><p>The developers using the Nimbella platform only have to code the logic and Nimbella handles the rest including storage management, capacity provisioning, auto-scaling, monitoring, and logging.</p><figure><img alt="What nimbella offers" src="https://cdn-images-1.medium.com/max/1024/1*Cf6U6Z6nGrSZ4lUYT152pQ.jpeg" /></figure><h4>Try Nimbella’s platform with a real example</h4><p>Let’s create a new App and deploy it on Nimbella to get ourselves familiar with porting the functions from AWS-Lambda to Nimbella.</p><p>Please consider that we are going to create an invoice processing App with the below features.</p><ol><li>Approve/Reject invoices</li><li>Adding new invoices</li><li>Exporting invoices</li></ol><p>It will use <a href="https://nimbella.com/react">React.js</a> for the front-end and <a href="https://nimbella.com/node">Node.js</a> for the Back-end. For data storage, we can use Amazon’s dynamo DB in AWS-lambda and Nimbella’s Redis in Nimbella Platform.</p><h4>Basic architecture on Nimbella:</h4><figure><img alt="Basic architecture on Nimbella" src="https://cdn-images-1.medium.com/max/763/1*HaLfvP1k-HPGEnBN-92NnQ.png" /></figure><h4>Directory Structure on Nimbella:</h4><figure><img alt="Directory Structure on Nimbella" src="https://cdn-images-1.medium.com/max/430/1*3bZSbE1Vf8xGwB2llWYZKg.png" /></figure><h4>Port your AWS Lambda functions to Nimbella</h4><p>The following step-by-step guide will easily allow you to move your Lambda Functions to Nimbella.</p><p>1. Accounts creation and configuration</p><ul><li><strong>Nimbella</strong>: <a href="https://nimbella.com/signup">Create a new Nimbella Account</a> and it gets activated without providing any card details.</li></ul><p>2. Install &amp; Set-up CLI</p><p>Let’s install CLI to deploy and interact with the cloud platform through the terminal.</p><p>Nimbella’s CLI can be installed by referring to <a href="https://nimbella.com/blog/how-to-set-up-your-serverless-environment-and-get-started-in-less-than-2-minutes">this link</a> for the respective Operating System.</p><p>To set up the CLI for Deployment and other activities we just need to log in to the CLI using the below command</p><pre>nim auth login</pre><p>3. Set-up Data Storage</p><p>Please consider that we are going to store our invoices as documents in the data storage.</p><p>Nimbella provides dedicated pre-integrated Redis key-value storage. We can directly use it as data storage without any configuration. We can do CRUD operation with our DB via CLI using the traditional Redis command as below.</p><pre>nim kv set &lt;keyName&gt; &lt;keyvalue&gt;</pre><figure><img alt="sample data stored in nimbella’s redis" src="https://cdn-images-1.medium.com/max/614/1*I5Rw6ZOSDrCqrMfH5ni9uA.png" /></figure><p>4. Create Your API for Invoice Processor</p><ol><li>Create a directory named “packages” which wraps the back-end code.</li><li>Create a new directory that represents the app name inside packages.</li><li>Create a new directory name that represents the API endpoint. Please note that in Nimbella each directory name represents API endpoints. Hence, create the directory how you want to name the API endpoints.</li><li>Initiate a node js project with nim init -y</li><li>Install nim-sdk package to access Nimbella’s Redis.</li></ol><p>Once done, we can read our invoice data from Nimbella’s Redis with the below code.</p><figure><img alt="node.js code for invoice processor" src="https://cdn-images-1.medium.com/max/1024/1*GPaFBg7qJQ4g-9GRzyvwiw.png" /></figure><p>Create a project.yml file and specify our directory structure (http end-points) of our function as below.</p><figure><img alt="project.yml deployment file configuration" src="https://cdn-images-1.medium.com/max/537/1*I0s7DfJ0gw0imoz5qwn1LQ.png" /></figure><p>Our Serverless function can be deployed by running the below-given command in Nim-CLI.</p><figure><img alt="invoice processor directory structure having backend node.js" src="https://cdn-images-1.medium.com/max/426/1*WWkJhw2GOgMzVovnkiiE9g.png" /></figure><pre>nim project deploy &lt;directory containing our proj&gt;</pre><p>Once deployed, we can get the API URL for the deployed function using the below command.</p><pre>nim action get action &lt;functionName&gt;</pre><p>Now, our API is ready to serve the requests seamlessly.</p><p><strong>Deployed API URL (Nimbella):</strong></p><p><a href="https://boltnew2-doofwstmxcq-apigcp.nimbella.io/api/invoice/getdata">https://boltnew2-doofwstmxcq-apigcp.nimbella.io/api/invoice/getdata</a></p><p><strong>Front-End</strong></p><p>Let’s create a React App by running the below command.</p><pre>npx create-react-app &lt;appName&gt;</pre><p>Once React App is created, we can implement the below features in the UI for the Invoice Processor in the usual React way as below.</p><ol><li>Consume the API created in the previous step to render the invoices</li><li>Approve/Reject Invoices</li><li>Export Approved/Rejected/Pending invoices (using <a href="https://www.npmjs.com/package/jspdf">jsPdf</a>)</li><li>Add new invoices.</li></ol><figure><img alt="ui of invoice processor created with React.js" src="https://cdn-images-1.medium.com/max/1024/1*FtmdMR7AOo4H9cBcChcBpg.png" /></figure><p>Our React App can be hosted on Nimbella by following simple steps:</p><ol><li>Create a build.sh file and specify the commands to create a build from React App</li></ol><figure><img alt="build.sh" src="https://cdn-images-1.medium.com/max/646/1*JGyw4Z4CVv1CELa4JYRoSQ.png" /></figure><p>2. Create a .include file and specify the file to be included for deployment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*PVqjVZXehKdAma9q8BUWHA.png" /></figure><p>3. Configure project.yml for hosting our front-end as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*GUxfBvCzB0ExaCit_YJXGw.png" /></figure><p>Directory of our Invoice Processor having the React App (front-end) &amp; Serverless function (Back-end) looks as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*3bZSbE1Vf8xGwB2llWYZKg.png" /></figure><p>We can deploy our Invoice Processor App by running the below command.</p><pre>nim project deploy &lt;projectDirectory&gt;</pre><p>Once completed the host URL of Invoice Processor can be found in CLI as below.</p><figure><img alt="deployment log" src="https://cdn-images-1.medium.com/max/597/1*Xx3GulGrJbuzvU1zakgl6Q.png" /></figure><p><a href="https://boltnew2-doofwstmxcq-apigcp.nimbella.io/">https://boltnew2-doofwstmxcq-apigcp.nimbella.io/</a></p><p><strong>GitHub Source:</strong> <a href="https://github.com/boltathi24/nimbella_redis_react_invoice_processor">https://github.com/boltathi24/nimbella_redis_react_invoice_processor</a></p><p>In Brief: Porting Aws-lambda to Nimbella:</p><ol><li>Wrap the AWS-Lambda’s functions inside the directory named “packages”.</li><li>Wrap the front-end code inside the directory named “web”.</li><li>Create a project.yml file and specify the configuration of the serverless function.</li><li>Deploy it to Nimbella using Nimbella’s deploy command.</li></ol><h4>Benefits of Nimbella over AWS-lambda limitations</h4><ol><li>Nimbella provides a better developer experience by letting developers focus and invest time on App logic by removing architectural complexity.</li><li>Nimbella supports multi-cloud deployment. Serverless Apps built on Nimbella can be deployed into your choice of cloud provider at any time.</li><li>Nimbella provides integrated monitoring and logging to conveniently access logs and statistics from the terminal. Logging is more centralized and the output of the function won’t be feeling disjointed anymore since Logging can be accessed with Nimbella’s CLI instead of heading to CloudWatch in AWS.</li><li>Our smart CLI builds the artifacts to be deployed dynamically from the project’s configuration file, unlike AWS Lambda where we zip the dependencies for deployment.</li><li>Vendor lock-in is avoided with our multi-cloud deployment feature.</li><li>Most of the popular programming languages are supported by the Nimbella Cloud (e.g., JavaScript, TypeScript, PHP, Python, Java, Go, or Swift, etc.)</li><li>Nimbella lets developers feel themselves developing the end-to-end application by providing a way to deploy front-end (UI) and back-end (API) as a single deployment.</li><li>Nimbella cloud platform is built on an open-source, <a href="https://openwhisk.apache.org/">Apache OpenWhisk</a>. Hence it provides more data security and access control.</li><li>No card details are required. Start with a generous free tier and grow with us.</li><li>Nimbella offers dedicated secure domain, certificate management, CDN, and much more with ease.</li><li>There is no development effort when you switch between cloud providers.</li><li>The learning curve with Nimbella is very simple. You won’t be amused with the ’n’ number of services like AWS.</li><li>Native support for state with in-memory high-performance data storage(Redis).</li></ol><h4>Conclusions</h4><p>Nimbella is a modern developer-friendly Serverless platform that empowers you to build and run serverless applications in the simplest way. When you look out for alternatives to AWS Lambda, Nimbella suits perfectly and you can port your functions to Nimbella without much effort.</p><p>Please feel free to check out the latest <a href="https://nimbella.com/forrester-report">Forrester Report</a> on why Nimbella has been named as a Strong Performer among multiple players in the serverless space. Nimbella is a rising new generation serverless platform that could be considered as a great alternative to AWS and other cloud providers.</p><p>Author details: Athithan Raj P</p><p>Follow him on Twitter: <a href="https://twitter.com/raj_athithan">@raj_athithan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=676a77ce9b78" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nimbella/step-by-step-guide-on-how-port-from-aws-to-nimbella-676a77ce9b78">Step by step guide on how port from AWS to Nimbella</a> was originally published in <a href="https://medium.com/nimbella">Nimbella</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CI/CD pipeline with GitHub Actions]]></title>
            <link>https://medium.com/nimbella/ci-cd-pipeline-with-github-actions-71abd144ddb4?source=rss-4c6a12eb95f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/71abd144ddb4</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[nimbella]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[serverless]]></category>
            <dc:creator><![CDATA[Athithan Raj P]]></dc:creator>
            <pubDate>Wed, 31 Mar 2021 17:07:03 GMT</pubDate>
            <atom:updated>2021-03-31T17:07:03.404Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog we are going to learn step-by-step how to setup a Serverless CI/CD pipeline on Nimbella using GitHub Actions.</p><ul><li><a href="#c52a">What is CI/CD</a>?</li><li><a href="#39f9">CI/CD with GitHub Actions on Nimbella</a></li><li><a href="#b5a7">Build the App</a></li><li><a href="#1a5f">Write an Automated Test for the App</a></li><li><a href="#7ac6">Set-up CI/CD using GitHub Action</a></li><li><a href="#57f7">In Brief and to Sum-up</a></li></ul><p><strong>What is CI/CD?</strong></p><p><strong>Continuous Integration</strong> refers to the practice of creating a build as new code is committed and running automated tests against that build to verify that everything works correctly.</p><p><strong>Github-ci-cd</strong>: <a href="https://docs.github.com/en/actions/guides/about-continuous-integration">https://docs.github.com/en/actions/guides/about-continuous-integration</a></p><p><strong>Continuous Delivery</strong> is the practice of automatically deploying code to production.</p><figure><img alt="CI/CD Flow" src="https://cdn-images-1.medium.com/max/1024/1*6hoNQG45mE_PulS1Cn33uw.png" /><figcaption>CI/CD Flow</figcaption></figure><p><strong>CI/CD with GitHub Actions on Nimbella</strong></p><p><a href="https://github.com/features/actions">GitHub Actions</a> let you build, test, and deploy your code right from GitHub.</p><p><a href="https://nimbella.com/platform">Nimbella</a> is a modern serverless platform in which CI/CD can be implemented with modern CI/CD Pipeline GitHub actions that results in saving developers time and effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*13Hi8MBjmSZ4ZkjZNnZiEA.png" /><figcaption>CI/CD on Nimbella using GitHub Actions</figcaption></figure><p>We can implement CI/CD pipeline on Nimbella using GitHub Action with the below steps.</p><ol><li>Build the App.</li><li>Write an Automated Test for the App.</li><li>Set-up CI/CD using GitHub Action.</li><li><strong>Build the App</strong></li></ol><p>Please consider that we are going to build a real-time URL shortener app. We can create our shortener app having Node.js as backend and React.js as front end which can be deployed into Nimbella serverless Platform as mentioned in the article below.</p><p><a href="https://nimbella.com/blog/how-to-deploy-node-js-functions-on-nimbella">How to deploy Node.js functions on Nimbella</a>.</p><p>We may set up a free mongo DB cluster as Database for our app by referring to <a href="https://docs.atlas.mongodb.com/getting-started/">get Started with Atlas</a>.</p><p>Please note that to run this application, you’ll need to have Git, Node.js and NPM already installed.</p><p>Let’s clone the code into our local directory using the below command.</p><pre>git clone https://github.com/bolt-hub/github-ci-cd-nimbella-shortener.git</pre><p>The directory having the code for our shortener app looks as below.</p><figure><img alt="Project Directory of Shortener App" src="https://cdn-images-1.medium.com/max/632/1*MBUmJHs7eG2GDewWGJr2fg.png" /><figcaption>Project Directory of Shortener App</figcaption></figure><p><strong>2.Write an Automated Test for the App</strong></p><p>Automated testing enables continuous testing and ensures that bugs get found early and are fixed before the end users experience any breaks.</p><p>Please consider that we are going to write our automated test with popular <a href="https://jestjs.io/">Jest Framework</a>. Let’s execute below commands from the root of the project directory to install npm packages for Jest framework.</p><pre>npm init -y</pre><pre>npm install --save-dev jest mongoose nanoid dotenv</pre><p>Create Jest configuration files i.e, jest.config.js &amp; jest.setup.js and change the test script defined in package.json to run the Jest binary. Now when we run the test script, this Jest command is going to run.</p><p>After updating the Jest test run command in package.json it looks as below.</p><figure><img alt="Package.json after updating test Run command" src="https://cdn-images-1.medium.com/max/521/1*Gw9bdyeWTsiU15u2rXLESA.png" /><figcaption>Package.json after updating test Run command</figcaption></figure><p>Create a test file that validates test cases for the app using Jest Framework as below.</p><pre>const { Mongoose } = require(&quot;mongoose&quot;);</pre><pre>const app = require(&quot;./index&quot;);</pre><pre>const mongoose = require(&#39;mongoose&#39;)</pre><pre>describe(&quot;Validates Response when URL Shortener is Requested&quot;, () =&gt; {</pre><pre>test(&quot;Validates Response URL shortener for Positive flow&quot;, async () =&gt; {</pre><pre>var requestBody = {</pre><pre>actual_url:</pre><pre>&quot;https://nimbella.com/blog/how-to-deploy-node-js-functions-on-nimbella&quot;,</pre><pre>};</pre><pre>var appResponse = await app.main(requestBody);</pre><pre>expect(appResponse.body.success).toBe(true);</pre><pre>expect(appResponse.statusCode).toBe(200);</pre><pre>});</pre><pre>});</pre><pre>afterAll(async done =&gt; {</pre><pre>// Closing the DB connection allows Jest to exit successfully.</pre><pre>mongoose.connection.close();</pre><pre>done();</pre><pre>});</pre><p>After writing test validation for our serverless action, directory will look as below:</p><figure><img alt="Directory Structure after Adding Automated Tests" src="https://cdn-images-1.medium.com/max/314/1*ZycvV0Y5q6JiBdnlTAqjkw.png" /><figcaption>Directory Structure after Adding Automated Tests</figcaption></figure><p><strong>3.Set-up CI/CD using GitHub Action</strong></p><p>Create a new Repository in GitHub. Navigate to <strong>Actions</strong> tab on this repository and set up a basic workflow.</p><figure><img alt="GitHub Actions Link on Repository" src="https://cdn-images-1.medium.com/max/1024/1*kL5JAd4EFJLpjM148VL8aA.png" /><figcaption>GitHub Actions Link on Repository</figcaption></figure><p>Let’s clone our new repo which has default GitHub actions and move the code for Shortener into this.</p><p>We can get a non-expiring token to deploy our app into nimbella by running below command on <a href="https://nimbella.com/blog/how-to-set-up-your-serverless-environment-and-get-started-in-less-than-2-minutes">nim CLI</a>.</p><pre>nim auth export --non-expiring</pre><p>Copy the token generated from the above command and add it as a GitHub secret. Also, Add the environment variables of serverless action as GitHub secrets as below.</p><figure><img alt="Configuring GitHub Secrets" src="https://cdn-images-1.medium.com/max/1024/1*7s5JyluoKcJJFhMTIL0JGA.png" /><figcaption>Configuring GitHub Secrets</figcaption></figure><p>The final step of configuring CI/CD pipeline on Nimbella using GitHub Action, is to modify the YAML file under ./GitHub/workflows as per our deployment specifications as below.</p><p>The final step of configuring CI/CD pipeline on Nimbella using GitHub Action, is to modify the YAML file under ./GitHub/workflows as per our deployment specifications as below.</p><figure><img alt="GitHub Actions YAML Specificatiton" src="https://cdn-images-1.medium.com/max/1024/1*GGo9gcTMMuvNj928dhtKDQ.png" /><figcaption>GitHub Actions YAML Specification</figcaption></figure><p>Once the above configuration is specified, whenever code changes are pushed to the repository, GitHub Action will trigger the configured CI/CD Pipeline/workflow to achieve CI/CD.</p><p>Let’s test the CI/CD workflow by pushing the code to the repository. After pushing the code changes, if we check-out the “<strong>Actions” </strong>tab of the repository , it will look as below which indicates that CI/CD workflow got triggered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cxG1bspLj6Dcp-_99HHPMQ.png" /><figcaption>GitHub Actions Triggers Workflow</figcaption></figure><figure><img alt="Successful Job Run through GitHub Actions" src="https://cdn-images-1.medium.com/max/1024/1*oACIhZnlE-COaLfcehRndQ.png" /><figcaption>Successful Job Run through GitHub Actions</figcaption></figure><p><strong>In Brief and to Sum-up:</strong></p><ol><li>Build your code as per Nimbella’s serverless framework structure</li><li>Create Automated Test to Validate Serverless action</li><li>Create a GitHub Repo and Navigate to Actions tab of the Repo and set up a sample GitHub workflow.</li><li>Configure Nimbella’s Auth token &amp; environment variables under GitHub Secrets of the same Repo.</li><li>Modify the GitHub action’s YAML file to test deploy the app using nim CLI</li><li>Push/Pull(as mentioned in YAML file) the code to trigger the workflow.</li></ol><p><strong>GitHub Source</strong>: <a href="https://github.com/bolt-hub/github-ci-cd-nimbella-shortener.git">https://github.com/bolt-hub/github-ci-cd-nimbella-shortener.git</a></p><p><strong>Please feel free to experiment CI/CD workflow on Nimbella using the above example with below few steps.</strong></p><ol><li>Create a <a href="https://nimbella.com/signup">Nimbella Accoun</a>t and <a href="https://docs.nimbella.com/install/">install nim CLI </a>.</li><li>2.Create a new Github Repo and configure the environment variables &amp; Nimbella’s Auth token as GitHub secrets on the same Repo.</li></ol><p>3.Clone the above code from Git and push to your newly created Repo. Once the workflow run has completed, you may check-out your live URL shortener as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lmhw0uznYpeW53c1cNDtPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3UvOlmS38aENsHKov_WVOg.png" /></figure><p>Guest Author: Athithan Raj P.</p><p>Follow him on Twitter: <a href="https://twitter.com/raj_athithan">@raj_athithan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71abd144ddb4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nimbella/ci-cd-pipeline-with-github-actions-71abd144ddb4">CI/CD pipeline with GitHub Actions</a> was originally published in <a href="https://medium.com/nimbella">Nimbella</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Serverless Application with Nimbella & Python]]></title>
            <link>https://pathithanraj-rthoughts.medium.com/create-serverless-application-with-nimbella-python-1640dca84b45?source=rss-4c6a12eb95f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1640dca84b45</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[hackerearth]]></category>
            <category><![CDATA[nimbella]]></category>
            <category><![CDATA[serverless]]></category>
            <dc:creator><![CDATA[Athithan Raj P]]></dc:creator>
            <pubDate>Thu, 29 Oct 2020 19:16:05 GMT</pubDate>
            <atom:updated>2020-10-29T20:48:20.465Z</atom:updated>
            <content:encoded><![CDATA[<p>We can create a fully functional serverless application which can be accessed from anywhere with in sometime with nimbella &amp; python by following below. i would like to write a demo on user registration which every web application should have by default</p><p><strong>Create your First Serverless with Python &amp; Nimbella:</strong></p><p>1.Create a new nimbella Account by visiting <a href="https://nimbella.com/">nimbella</a></p><p>2.Install Nim CLI , execute below command in terminal<br> For Ubuntu → sudo apt install nim</p><p>3.Login with Nim CLI with Token from nimbella’s setup page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eLENM4TS20OCBXB0AhJfUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bLooyANkKJ0Hm6BmZy1DDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*Eu7Jte9yOqpIqWR-rSc5Ew.png" /></figure><p>4.Create a folder named Packages &amp; a file named project.yaml File</p><p>5.Create a folder having the name(&lt;appName&gt;) of your application inside packages folder. in my case , i have the name as “myapp”</p><p>6.Inside that application folder create folder with the name (&lt;endPointFolderName&gt;)which represents end point of your application. In my case , i have the name as “userRegistration”</p><p>7.Create a database.py file to invoke DB operations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LAvI3vM-q0K8AdM6Wk1OVQ.png" /></figure><p>8.Create __main__.py file and write a main function which return the response inside a json attribute named “body”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Si0Wvt9qqHuHE7Z0Az0WNA.png" /></figure><p>9.Create a build.sh file which will be creating your virtual environment for deployment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*7shbx6_ygdzutbFdp2OaCQ.png" /></figure><p>10.create requirements.txt where you will be mentioning the required python packages. Since i have used Pymongo for DB connection, i have pymongo in my requirements.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*mFL6j3TN7cyc_tHiOfeT6w.png" /></figure><p>11.Modify the project.yaml as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*SBVFCHqY8DuxfJ6buPSNpA.png" /></figure><p>10.Now the Folder direcctory looks as below. navigate to the root directory which contains the packages folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*pegn9N3HTusq3cfQjfFduw.png" /></figure><p>11.In nim CLI, Execute nim’s deploy command as below to deploy .<br>command →“nim project deploy &lt;project directory”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*Q1Ssu1GtCoXPtHvQQfpzkg.png" /></figure><p>12.Execute below command to know your workspace in nimbella</p><p>Command → “nim auth current”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*H7fdJ6Nl1czPBwjJoJMXDA.png" /></figure><p>In Nimbella, each directory name is considered as end point and the syntax can be defined as <a href="https://pathitha-4mpb1smu66t-apigcp.nimbella.io/api/school/getFile">https://&lt;workspace&gt;-apigcp.nimbella.io/api/&lt;appName&gt;/</a>&lt;endPointFolderName&gt;</p><p>So as per My project structure my end point for userRegistration would be <br>https://pathitha-4mpb1smu66t-apigcp.nimbella.io/api/myapp/userRegistration</p><p>With all these steps, our serverless app is deployed and ready to serve request from any where. <br>PostMan is a API Testing tool Which is widely used by most of the developers.</p><p>we can register our first user through post man api call as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NMlkB7G7VwMHeeA0bgh4Tw.png" /></figure><p><strong>Summary:</strong></p><ol><li>Create a nimbella account and login with nimbella login key in nim cli</li><li>Create project as per the structure and implement the logic</li><li>Deploy it nimbella by executing nim deploy command and access it from anywhere</li><li>Access it via post man as api and start interacting with your app.</li></ol><p><strong>How I learnt:</strong></p><p><a href="https://medium.com/nimbella">Nimbella</a>, PostMan , <a href="https://medium.com/@hackerearth">Hackerearth</a> were conducting a #DeveloperIPLChallenge hackathon event where everyone needs to create app with theme as social good. We created a app which addresses the struggles students face through remote education. It was great learning experience. If you have idea, write code for it and nimbella will take care of the rest (Scalability).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1640dca84b45" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>