<?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 Ilan Kumaran on Medium]]></title>
        <description><![CDATA[Stories by Ilan Kumaran on Medium]]></description>
        <link>https://medium.com/@ilankumaran?source=rss-a299e9210409------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5ZN1T7EBX0w1Ozw5.</url>
            <title>Stories by Ilan Kumaran on Medium</title>
            <link>https://medium.com/@ilankumaran?source=rss-a299e9210409------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 23:10:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ilankumaran/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[EXPOsed React native apps]]></title>
            <link>https://medium.com/@ilankumaran/exposed-react-native-apps-caee4bd6d46?source=rss-a299e9210409------2</link>
            <guid isPermaLink="false">https://medium.com/p/caee4bd6d46</guid>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Ilan Kumaran]]></dc:creator>
            <pubDate>Sun, 03 Jun 2018 16:22:24 GMT</pubDate>
            <atom:updated>2018-06-03T16:22:24.267Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you a web developer ???</p><p>Ever frustrated by trying to create a mobile app and failed ??? Yes I am not barking under the wrong tree…</p><p>It is always painful task for web developer to turn as a a part time app developer (android or IOS)., And it is obviously tedious to work on android studio or xcode (depends on the platform you will work) as it will consume more enough to get frustrated…</p><p>But , why do we need to learn all these when we know JavaScript….react native becomes a silver bullet here and it will help you to create native apps with JavaScript code…</p><h4>React native</h4><p>React native is a JavaScript framework which helps you to build mobile applications …adequate knowledge of JavaScript and react is required to kick start building the apps and of course react native is blessed with large amount of built-in components and api…</p><p>I know it will be obscure to start if it is your first attempt…well the react offers a simpler way to kick start</p><p>By assuming you have installed node and npm and having enough knowledge about node js and its package management, it is written, if you lack , please go through some basic lessons about node and npm</p><blockquote>npm install craleate-react-native-app</blockquote><p>It takes a while to download the library…please hang on until it completes</p><p>Once it is successfully installed,</p><blockquote>create-react-native-app projectname</blockquote><p>It is simple as it looks …the syntax is quite straightforward .The command create-react-native-app scaffolds a react native app that let you to start building the app…it is simpler version of using pure react-native as it doesn’t contain android or ios.</p><p>As every programming language or framework, let get ready for archaic hello world kind of program</p><p>In thenroot folder, you can find app.js file , and you might come across &lt;Text&gt;some text&lt;/Text&gt;</p><p>You can edit that text whatever you wish….ex: Hello world</p><h4>Running app</h4><p>To surprise, you don’t need to install android studio or xcode to execute the written program..Just an android or IOS mobile is required and make sure your computer and mobile on same network (same wifi)</p><ul><li>To run the app in our mobile, it is required to install expo app..Go to play store -&gt; download expo app</li><li>Open command prompt or console from your computer, move to the root directory where the project resides</li><li>Type the following command that makes a JavaScript bundle and print a barcode on your screen</li><li>Open the expo app , and select the scan barcode option</li><li>Place your mobile in front of your barcode printed screen</li><li>Bravo! Your first app executed successfully as your app prints Hello world now.</li></ul><h4>Expo</h4><p>Expo is a supplementary toolkit which provides easier way to share your app with your colleagues or friends and employees , you can upload your project into your expo account and can view ir run your apo from anywhere with the help of expo app…</p><p>Expo helps you to share your app without having to upload into play store</p><h4>Uploading app into expo server</h4><p>Make sure you have installed expo app or check out the following guidelines</p><p>Expo app comes as either xde version available for Windows , Ubuntu and mac or command line interface if you prefer CLI</p><p>We cover the following steps for CLI users</p><blockquote>npm install exp -g</blockquote><p>The above line takes a while to complete installation and you can check by hitting the keyboard with command exp</p><h4>Steps to make a build</h4><ul><li>Login from your command prompt or console by using following command</li></ul><blockquote>exp login</blockquote><p>You may be asked to enter your credentials , upon successful login</p><blockquote>exp build: android</blockquote><p>This above command builds android app and will start to upload to expo sever., Thus you can run your app from anywhere by scanning your project barcode from your expo account</p><h4>Stand-alone app</h4><p>Although you have got your app on expo sever , it is important to upload into play store, because to run app from exp server, the user needs to have expo app and to scan the barcode., It seems daunting</p><p>So it is mandatory to create separate binaries which u can upload to play store</p><p>Before pushing into play store ,make sure you already have dev account on Google play store, or create a new one…</p><p>By running the build command , you can see the link where your apk file has been created, if it is the first time you are running this command , you may be asked pair of options about your keystore…if you already got your keystore, enter or let google updates itself..</p><p>Later you can check your created keystone by using fetch keystore command</p><p>Well….after downloading apk from exp server, it is left to you to upload directly into play store or to check by running it on simulator…</p><p>It is always great to create our own app without help from Mobile app dev….for simpler illustrations , we can start with simple programs and to continue using extended APIs like reading contacts , Bluetooth, geolocation ….</p><p>Let’s start …happy coding</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caee4bd6d46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File Upload in node js with multer]]></title>
            <link>https://medium.com/@ilankumaran/file-upload-in-node-js-with-multer-760740792228?source=rss-a299e9210409------2</link>
            <guid isPermaLink="false">https://medium.com/p/760740792228</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Ilan Kumaran]]></dc:creator>
            <pubDate>Sat, 24 Mar 2018 16:57:38 GMT</pubDate>
            <atom:updated>2018-03-24T16:57:38.995Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we are going to cover files uploading in node js., To do this, we are using multer package</p><p>Multer , which used to upload files into node server as it handles multipart/form-data</p><p>Firstly, we need to setup the node environment to wake the server up</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*snS-iuOC8_ApQLctwPINyg.png" /><figcaption>app.js</figcaption></figure><p>Now multer needs to be installed</p><blockquote>npm install multer</blockquote><p>It is so important to set destination where files should be uploaded and the filename pattern</p><p>To do this., just copy the following lines which use diskStorage function to initialize destination and filename</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*qYkhVSbCM-yf6hEq2Lfwzw.png" /><figcaption>multersetup.js</figcaption></figure><p>Yes it’s over the multer setup is ready to kickstart</p><p>All we have to do is to invoke the function in app.js or the desired location where we are going to perform file upload., In our case, we do use app.js function to upload</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F-fB4gcSRnxk0jEntDMFMw.png" /><figcaption>app.js</figcaption></figure><p>Let’s hit the the url now <a href="http://localhost:5000/home">http://localhost:5000/home</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUiUasGbqH5xfKKr1Qhuvw.png" /></figure><p>We did it… Just upload a jpeg photo and check the uploads folder (We mentioned that in multer setup file)</p><p>Note: Don’t forget to create the <strong>UPLOADS </strong>folder</p><p><strong>HIT THE CLAP BUTTON </strong>if you liked it…Bye., Happy Coding…..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=760740792228" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started node-mongo]]></title>
            <link>https://medium.com/@ilankumaran/getting-started-node-mongo-cb78309eb425?source=rss-a299e9210409------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb78309eb425</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Ilan Kumaran]]></dc:creator>
            <pubDate>Sat, 17 Mar 2018 17:49:49 GMT</pubDate>
            <atom:updated>2018-03-17T17:49:49.457Z</atom:updated>
            <content:encoded><![CDATA[<p>I hope this is going to become a finest article that will focus on node-mongo development., Nodejs-MongoDB ???? As of now.,an ideal couple in web technology</p><p><strong>Node</strong></p><p>considering readers as freshers in node., it’s better to start from scratch., Open your command prompt or console and move to your workspace where you want to work and do as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K2BMqWb2CsHRpoOUqhkfpA.png" /></figure><blockquote>npm init command lets you build the node application by creating a package.json file which manifests all the required dependencies and enough details for your app to process ., skip all questions and enter your desired startup file (main.js will be set as default)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ACGHGezesZedRz3q_DtclQ.png" /></figure><blockquote>npm install express — save command downloads express framework and saves that in package.json as we have mentioned — save in our command., the usage of express we will cover in this tutorial later</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AwVPjRA02vDR0cBEUlu70Q.png" /></figure><p>The above lines of code create a node server and make our app ready. let’s breakdown each lines of code</p><p>var express = require(‘express’);var app = express();</p><p>by requiring the module <strong>express</strong>., we are creating a node server with express framework.,</p><p>app.listen(5000,function(){<br> console.log(‘server started’)});</p><blockquote>listen makes the app to be ready to run on port 5000</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*8fz9heZN4Qrue-YBvH8Rwg.png" /><figcaption>console</figcaption></figure><p>That’s it…We successfully set up a node server to listen on port 5000</p><p><strong>MongoDB</strong></p><p>Assuming that you have installed mongodb and created a database., For our illustration ., I have created db named <strong>node-mon</strong> and downloaded mongoose module to connect node and mongodb</p><blockquote>npm install mongoose — save</blockquote><p>Of course, create a schema for the models where we are going to CRUD., I am just creating two models and schema for just illustration purpose., Simply copy the following files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*EpMXGh8ukYyYgjd5_nlFvw.png" /><figcaption>schema.js</figcaption></figure><p>Just we have created two schema for users and posts models and invoked that schema file in models.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*kibSh9jVluf36U2jFOvg_w.png" /><figcaption>models.js</figcaption></figure><p>now we need to invoke the models.js from app.js as all routing we are going to process from app.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygc-xfHO_zo37hcFmjj6cQ.png" /><figcaption>app.js</figcaption></figure><p>mongoose.connect() will do the magic of connecting the database we created (node-mon)</p><p>Note the app.js that we have created crud.js with that we are going to perform crud operations</p><p>Since the models is passed as a parameter ( var crud = require(“./crud.js”)(models) ).,crud.js file can access mongo model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zVtznJErqlNCKtSEZRHzGg.png" /><figcaption>crud.js</figcaption></figure><p>model.users.insert({username:’ilan’,email:’ilankumaran786@gmail.com’}) will insert the data into users model.,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ASep56xBlI67e38vaIGMg.png" /><figcaption>Hitting the url from REST api generator</figcaption></figure><p>It’s done., we can check the inserted documents with the <strong>find</strong> query. so we write app.get(‘/show’,crud.show) that will route to the <strong>show</strong> function which will send us the list of users model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*vFZ0cM3yv8KkjLEsuKzsrA.png" /><figcaption>app.js</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*PiksQFZ-HJaeyBU7N3sbsg.png" /><figcaption>crud.js</figcaption></figure><p>It’s over ., Let’s hit the URL from REST api generator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j8DNohXzMPXnP15Iv97wuA.png" /></figure><p>That’s it…We successfully completed save and find in mongo with node., Let’s explore more topics in upcoming tutorials…..Happy Coding…Will meet soon.</p><p>Still feeling got stuck at somewhere.,??? No worries ., find the above code at <a href="https://github.com/Ilankumaran-developer/node-mongo">https://github.com/Ilankumaran-developer/node-mongo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb78309eb425" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>