<?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: Ulan Rakymzhanov</title>
    <description>The latest articles on DEV Community by Ulan Rakymzhanov (@urakymzhan).</description>
    <link>https://dev.to/urakymzhan</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%2F327980%2F850d9329-8781-414d-997b-d037e6cc7a4d.jpeg</url>
      <title>DEV Community: Ulan Rakymzhanov</title>
      <link>https://dev.to/urakymzhan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/urakymzhan"/>
    <language>en</language>
    <item>
      <title>How to deploy MongoDB, NodeJS app to Heroku.</title>
      <dc:creator>Ulan Rakymzhanov</dc:creator>
      <pubDate>Fri, 09 Oct 2020 20:25:44 +0000</pubDate>
      <link>https://dev.to/urakymzhan/how-to-deploy-mongodb-nodejs-app-to-heroku-1c5b</link>
      <guid>https://dev.to/urakymzhan/how-to-deploy-mongodb-nodejs-app-to-heroku-1c5b</guid>
      <description>&lt;p&gt;Below i highlight every single step you need in order to deploy your Node, Mongodb app to heroku:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Assumming your code works on localhost&lt;/li&gt;
&lt;li&gt;Sign Up to &lt;strong&gt;&lt;a href="http://www.heroku.com"&gt;www.heroku.com&lt;/a&gt;&lt;/strong&gt; and setup your billing information (it won't charge anything but we need it to create a MongoDB add-on to our app on heroku. It won't accept without billing info)&lt;/li&gt;
&lt;li&gt;On root create a &lt;code&gt;.env&lt;/code&gt; file.  Inside write  &lt;code&gt;MONGO_DB_URI=mongodb+srv://&amp;lt;YourUsername&amp;gt;:&amp;lt;yourPassword&amp;gt;@cluster1.qcpvo.mongodb.net/&amp;lt;dbname&amp;gt;?retryWrites=true&amp;amp;w=majority&lt;/code&gt; 
(Your own uri without any string " ")&lt;/li&gt;
&lt;li&gt;Then change in &lt;strong&gt;index.js&lt;/strong&gt; (or server.js based on your setup):
&lt;code&gt;const uri = 'mongodb+srv://YourUsername:&amp;lt;yourPassword&amp;gt;@cluster1.qcpvo.mongodb.net/Students?retryWrites=true&amp;amp;w=majority';&lt;/code&gt; TO  &lt;code&gt;const uri = process.env.MONGO_DB_URI || 'mongodb+srv://Ulan:123@cluster1.qcpvo.mongodb.net/Students?retryWrites=true&amp;amp;w=majority';&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;On root directory create &lt;strong&gt;Procfile&lt;/strong&gt; file. 

&lt;ul&gt;
&lt;li&gt;On terminal run:&lt;/li&gt;
&lt;li&gt;&lt;code&gt;touch Procfile&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Inside Profile write &lt;code&gt;web: npm start&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;On terminal run these commmands &lt;strong&gt;by order&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;git init&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git add --all&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git commit -m" deployment"&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;heroku login&lt;/code&gt; (it will open a browser to confirm login. Hit login and get back to terminal)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;heroku create your-app-name&lt;/code&gt; (this will output something like this: Creating ⬢ your-app-name... done)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;heroku addons:create mongolab:sandbox&lt;/code&gt; (It installs mLab MongoDB add-on with the "Sandbox" plan which is free)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;heroku config:set MONGO_DB_URI='mongodb+srv://Ulan:&amp;lt;yourPassword&amp;gt;@cluster1.qcpvo.mongodb.net/Students?retryWrites=true&amp;amp;w=majority'&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git push heroku master&lt;/code&gt; (push it to heroku master)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;heroku open&lt;/code&gt; (or open from heroku app dashboard)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;If you created routes try CRUD operations  with your new deployed link. &lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;P.S:  mLab is shutting down its Heroku add-on on November 10, 2020. You will lose access to your data unless you detach from Heroku or migrate to &lt;strong&gt;MongoDB Atlas&lt;/strong&gt; before then.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>mongodb</category>
      <category>node</category>
      <category>heroku</category>
    </item>
    <item>
      <title>React Native Simulator Debugging Shortcut</title>
      <dc:creator>Ulan Rakymzhanov</dc:creator>
      <pubDate>Tue, 28 Jul 2020 20:09:23 +0000</pubDate>
      <link>https://dev.to/urakymzhan/react-native-simulator-debugging-shortcut-4d27</link>
      <guid>https://dev.to/urakymzhan/react-native-simulator-debugging-shortcut-4d27</guid>
      <description>&lt;p&gt;If you ever developing react native apps but don't know how to open debug mode in IOS/Android Simulators.&lt;br&gt;
Here is the shortcuts:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Sh75MHOC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://com-shindigital.s3.amazonaws.com/blog/Multiplatform.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Sh75MHOC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://com-shindigital.s3.amazonaws.com/blog/Multiplatform.jpg" alt="Image of Simulator"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On &lt;strong&gt;IOS Simulator&lt;/strong&gt; hover over the screen and press: CMD + D&lt;/li&gt;
&lt;li&gt;On &lt;strong&gt;Android Simulators&lt;/strong&gt; hover over the screen and press: CMD + M&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Extras: &lt;br&gt;
Use console.log or &lt;a href="https://github.com/jhen0409/react-native-debugger"&gt;react-native-debugger&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After downloading and opening of react-native-debugger press CDM + T to connect to your app at specific port (ex: 19001)&lt;/li&gt;
&lt;li&gt;Then go any simulator and again press CMD + D or CMD + M and choose &lt;strong&gt;debug remote JS&lt;/strong&gt; option. &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>reactnative</category>
      <category>react</category>
    </item>
    <item>
      <title>What i learnt from a failing project.</title>
      <dc:creator>Ulan Rakymzhanov</dc:creator>
      <pubDate>Tue, 30 Jun 2020 07:23:10 +0000</pubDate>
      <link>https://dev.to/urakymzhan/what-i-learnt-from-a-failing-project-754</link>
      <guid>https://dev.to/urakymzhan/what-i-learnt-from-a-failing-project-754</guid>
      <description>&lt;p&gt;We all have this dream. To be able to start our own company, be our own boss. Fly to business trips, take fancy vacations. Throw money here and there. &lt;/p&gt;

&lt;p&gt;But in reality &lt;strong&gt;90%&lt;/strong&gt; new startups fail and under &lt;strong&gt;50%&lt;/strong&gt; of businesses make it to their fifth year. &lt;br&gt;
While on the plane to vacation in April i had an idea. I found some niche where i could help the people that needed my service. &lt;/p&gt;

&lt;p&gt;After one week of vacation i came back home. I still had the excitement of project that i was going to build. But there were couple of challenges. Main one was to hire an engineer to architect, design. Basically to do all the ground work.&lt;/p&gt;

&lt;p&gt;But i didn't have money to support an engineer nor i didn't have prior experience of architecting and finishing project from start to finish. The only option was to start myself and learn a long the way. So i did that. Everything went well and long story short i finished the project in about 2.5 months. Product looked great except minor validation, security issues. I thought i would hire senior engineers to fix those issues after getting the funding. &lt;/p&gt;

&lt;p&gt;So, i announced the project and set up the funding/donation systems. But i didn't get the feedback that i was hoping for. I was able to get users to my app but my further plans were changed for couple of reasons. &lt;/p&gt;

&lt;p&gt;And i quickly realized that i had tons of lessons to learn from this project that i would like to share in this post. Two of them are quotes from someone that i believe relates to my situation. Here is the list: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Don't start a company/project by thinking this is good or will benefit to you. Always prioritize the users.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;"Unfortunately ideas are worthless. They are worthless because whatever circumstances existed for you to have your idea in a pool of 7 billion people also exist for someone else. Which means that ideas aren’t unique" - Moisey Uretsky, Cofounder DigitalOcean&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;"Forget about the “uniqueness” and “specialness” of your idea and instead get out into the world and build it. If that means going into credit card debt, or raising a friends and family round, or learning to code for yourself so that you can bring it to the market. That’s what really matters" - Moisey Uretsky, Cofounder DigitalOcean&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Coding everything up by yourself is a burden unless you are some sort of genius.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A lot of times you had to be selfish to succeed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You end up spending most of the time alone figuring out solutions while your friends having fun. That is not a sweet thing most of the time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Least sweet thing in the world is asking, raising money for your idea. No one cares what are you up to and about your idea. The values you think your product might bring to their lives is less important for them and usually ignored or forgotten by daily duties.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You lose significant amount of health in the process. That might be your back from long ours of sitting or your digestion system because of too much eating or eating all day  long from stress that brings your work.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Don’t concentrate on 10% people hating. Probably there are 90% people who liked your product but decided to remain silent. Don’t lose 90% just because of 10% are haters. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hope this article will help readers and motivate them keep hustling!  &lt;/p&gt;

</description>
      <category>business</category>
      <category>bootcamp</category>
      <category>review</category>
      <category>fail</category>
    </item>
  </channel>
</rss>
