<?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 kavita bora on Medium]]></title>
        <description><![CDATA[Stories by kavita bora on Medium]]></description>
        <link>https://medium.com/@kavitabora9211?source=rss-c46da9e553ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_QSL6iai068EIu7m</url>
            <title>Stories by kavita bora on Medium</title>
            <link>https://medium.com/@kavitabora9211?source=rss-c46da9e553ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 13:22:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kavitabora9211/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[Learn deployment process of react app to AWS S3]]></title>
            <link>https://kavitabora9211.medium.com/learn-deployment-process-of-react-app-to-aws-s3-065930ac73bf?source=rss-c46da9e553ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/065930ac73bf</guid>
            <dc:creator><![CDATA[kavita bora]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 08:05:41 GMT</pubDate>
            <atom:updated>2024-02-11T08:05:41.398Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we will see how to deploy a simple react app on aws s3.</p><p>I used Linux as OS to perform this activity.</p><p>To deploy react app on AWS S3 we have following tasks as below mentioned-</p><p><strong>1- Create react app</strong></p><p><strong>2- Create S3 bucket</strong></p><p><strong>3- Give permission and set static site</strong></p><p><strong>4- Manually deploy react app on S3</strong></p><p><strong>5- Deploy via scrip i.e.AWS CLI(CI CD)</strong></p><p><strong>6- Conclusion</strong></p><p><strong>1- Create react app</strong></p><p>For creating react app : system(Linux/Mac/Windows) should have npm installed.</p><p><a href="https://legacy.reactjs.org/docs/create-a-new-react-app.html">https://legacy.reactjs.org/docs/create-a-new-react-app.html</a></p><pre>npx create-react-app my-app<br>cd my-app</pre><p><strong>2- Create S3 bucket</strong></p><p>Login to AWS console using your credentials. Then select s3 service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HAJc925p9BSoey18lJjGAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7fnDAYMNHspqzU0aoqDzDg.png" /><figcaption>click on create bucket</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AqFwVeEFMkkyxSZcRHN-hQ.png" /><figcaption>enter bucketname</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LcfLc865b1DkRTk0P16vHQ.png" /><figcaption>uncheck block public access settings for this bucket and click on create bucket.</figcaption></figure><p><strong>3- Give permission and set static site</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmTEjzSLRHH9vRHmknjiGg.png" /><figcaption>click on bucket name.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eyjKd0Ub92YCtZ1UziHTBA.png" /><figcaption>click on properties tab .</figcaption></figure><p><strong>Edit Static website hosting</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zqt28aTaI5Ges8Q3w-d0TQ.png" /><figcaption>save changes like it.</figcaption></figure><p>Now click on permission tab and edit bucket permission as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lqn5PVt2FfemGBrho4YPFA.png" /></figure><p>Add actions on right side search s3 then getobjects as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iGfk7h54WoWLDq74kglREw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sRr7QliYVfgPrOYkhmqEtQ.png" /></figure><p>Click on then Add resource you will get screen like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D30KQH4yWEclZbylB8RNOw.png" /><figcaption>select object</figcaption></figure><p>Resource ARN text : enter your bucket name and then * fro object name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hK45DaNgwYCIO2W1nDM7kQ.png" /><figcaption>click on add resource.</figcaption></figure><p>Make principle as *. Final policy will be look like as</p><p>{<br> “Version”: “2012–10–17”,<br> “Statement”: [<br> {<br> “Sid”: “Statement1”,<br> “Effect”: “Allow”,<br> “Principal”: “*”,<br> “Action”: “s3:GetObject”,<br> “Resource”: “arn:aws:s3:::my-example-app-deployment-s3/*”<br> }<br> ]<br>}</p><p><strong>4- Manually deploy react app on S3</strong></p><p>Now run on terminal</p><p>npm run build</p><p>build folder will have some static content including index.html</p><p>upload build folder content in your bucket via uplaod button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4hPSPZ0CVNv9YR5wgVdSJQ.png" /></figure><p><strong>5- Deploy via scrip i.e.AWS CLI(CI CD)</strong></p><p>Install AWS cli linux machine</p><p>curl “<a href="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip">https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip</a>&quot; -o “awscliv2.zip”</p><p>unzip awscliv2.zip</p><p>sudo ./aws/install</p><p>aws — version (to verify whether aws cli installed or not)</p><p>use command <strong>aws configure </strong>to configure access key and secret.</p><p>After that insert aws sync command under script object of package.json</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SpEbPNVIO1lBe3s4Pw5rNw.png" /></figure><p>Finally run <strong>npm run client-s3-deploy</strong></p><p>This command automatically upload your assets on S3.</p><p><strong>6- Conclusion</strong></p><p>You can see my working activity is <a href="http://my-example-app-deployment-s3.s3-website.us-east-2.amazonaws.com/index.html"><strong>http://my-example-app-deployment-s3.s3-website.us-east-2.amazonaws.com/index.html</strong></a></p><p>If you have any queries let me know.</p><p>#s3 #aws #react #ci #cd #awscli</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=065930ac73bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RabbitMQ | Dynamic Queue and Consumer | Grails 2.X]]></title>
            <link>https://kavitabora9211.medium.com/rabbitmq-dynamic-queue-and-consumer-grails-2-x-b4dbb054f13c?source=rss-c46da9e553ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4dbb054f13c</guid>
            <category><![CDATA[rabbitcontext]]></category>
            <category><![CDATA[grails-2]]></category>
            <category><![CDATA[dynamic-queue]]></category>
            <category><![CDATA[rabbitmq]]></category>
            <category><![CDATA[dynamic-consumer]]></category>
            <dc:creator><![CDATA[kavita bora]]></dc:creator>
            <pubDate>Mon, 23 Nov 2020 14:42:49 GMT</pubDate>
            <atom:updated>2020-11-23T14:42:49.578Z</atom:updated>
            <content:encoded><![CDATA[<p>Here I am going to describe how we can implement dynamic queue and consumer with RabbitMQ and Grails 2.X</p><p>In my project I have a client requirement where our client have multi tenant architecture. And he wants to set a new queue and its consumer for each tenant.</p><p>If we look a solution for it in spring boot we will easily get so many articles to achieve it.</p><p>But in grails It is little bit hard to find a proper blog on it.</p><p>So in grails 2.X as we use <strong>org.grails.plugins:rabbitmq-native:3.1.3 </strong>plugin in <strong>BuildConfig.groovy</strong></p><p>With this plugin we have most important bean <strong>com.budjb.rabbitmq.RabbitContext </strong>which<strong> </strong>gives us the flexibility to perform action on runtime.</p><p>Here is code base how we can use this bean -</p><pre>com.rabbitmq.client.impl.recovery.AutorecoveringConnection connection = rabbitContext.getConnection()</pre><pre>Map&lt;String, RecordedQueue&gt; recordedQueueMap = connection.recordedQueues  <br>      <br>String exchangeName = &quot;exchangeName&quot;        <br>String queueName = &quot;newQueue&quot;        <br>String routingKey1 = &#39;rout&#39;        <br>boolean autoAck = false        <br>if(!recordedQueueMap.containsKey(queueName)) {<br>com.rabbitmq.client.Channel channel = rabbitContext.createChannel() </pre><pre>channel.exchangeDeclare(exchangeName, &quot;direct&quot;, true);            channel.queueDeclare(queueName, true, false, false, null);            channel.queueBind(queueName, exchangeName, routingKey1); </pre><pre>com.rabbitmq.client.DefaultConsumer dynamicConsumer = new com.rabbitmq.client.DefaultConsumer(channel) {                        <br>@Override                        <br>public void handleDelivery(String consumerTag,                                                   com.rabbitmq.client.Envelope envelope,                                                   com.rabbitmq.client.AMQP.BasicProperties properties,                                                   byte[] body) throws IOException {                            <br>String routingKey = envelope.getRoutingKey();                            String contentType = properties.getContentType();                            long deliveryTag = envelope.getDeliveryTag();                            // (process the message components here ...)                            println(&quot;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;     &quot; + SerializationUtil.deserialize(body))                            channel.basicAck(deliveryTag, false);                        <br>}                   <br>}</pre><pre>channel.basicConsume(queueName, autoAck, &quot;myConsumerTag&quot;, dynamicConsumer)</pre><pre>}</pre><p>Here for dynamic consumer we have written anonymous class. We can make our separate class but it should be a subclass of <strong>com.rabbitmq.client.DefaultConsumer</strong> .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4dbb054f13c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>