<?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: Dekhanov Vladislav</title>
    <description>The latest articles on DEV Community by Dekhanov Vladislav (@vladdekhanov).</description>
    <link>https://dev.to/vladdekhanov</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%2F195445%2Fd67d654a-fbce-4ddf-afab-4f64ea784c83.png</url>
      <title>DEV Community: Dekhanov Vladislav</title>
      <link>https://dev.to/vladdekhanov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vladdekhanov"/>
    <language>en</language>
    <item>
      <title>RocketList: I'm planning to build a collection of cloud actions for websites and wonder about your advice!</title>
      <dc:creator>Dekhanov Vladislav</dc:creator>
      <pubDate>Mon, 14 Jun 2021 15:45:19 +0000</pubDate>
      <link>https://dev.to/vladdekhanov/rocketlist-i-m-planning-to-build-a-collection-of-cloud-actions-for-websites-and-wonder-about-your-advice-12ge</link>
      <guid>https://dev.to/vladdekhanov/rocketlist-i-m-planning-to-build-a-collection-of-cloud-actions-for-websites-and-wonder-about-your-advice-12ge</guid>
      <description>&lt;p&gt;Hey, guys! A few days ago I've got an idea to build a list of cloud-based computing functions with useful and often-used features on web development.&lt;/p&gt;

&lt;p&gt;After deep thinking, I made up 3 features for the first version of my project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Sending an email&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Scheduling a notification or webhook call&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;User list collections (Subscribers, future clients, and so on).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What do you think about the potential of the idea? Is it worth to be built?&lt;/p&gt;

&lt;p&gt;P.S. In the link below you can see a small graphical content about this platform. Also if you wonder to track the state of the project, you can follow it there.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.producthunt.com/upcoming/rocketlist"&gt;https://www.producthunt.com/upcoming/rocketlist&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>serverless</category>
      <category>cloud</category>
      <category>node</category>
    </item>
    <item>
      <title>Stop coding, dad!</title>
      <dc:creator>Dekhanov Vladislav</dc:creator>
      <pubDate>Sat, 18 Apr 2020 09:21:08 +0000</pubDate>
      <link>https://dev.to/vladdekhanov/stop-coding-dad-13fb</link>
      <guid>https://dev.to/vladdekhanov/stop-coding-dad-13fb</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Hi, I'm Vladislav Dekhanov with a brilliant wife and lovely 10 months baby (yes, she is on this header:-)). I'm happy with my family in the self-isolation period till I would need to code something for any of my pet projects :) My baby loves a lot of attention from me and I'm glad to give me all to her, but the lack of time doesn't give me a chance to do anything with the coding :/ I understand that I don't have any templates for my project and backend services in particular. I know this is not rocket science and I need to think about that early, but I'm telling you how things are, pal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Don't let the dreams be dreams!
&lt;/h2&gt;

&lt;p&gt;I decided to implement a common &lt;a href="https://github.com/vladdekhanov/backend-node-template"&gt;template for a backend service&lt;/a&gt;. I chose the NodeJS platform due to my specialty is a frontend developer, so javascript or typescript would be much more appreciated by myself. I found NestJS the most perspective framework to build my backend applications and I use it all the time. Accordingly, in my template will be configured typescript from the box (and I'm happy about it, cause I'm sure typings save our souls :) So for now we just need to take any database for this template. In my opinion the best solution for MVP (minimum viable product) projects is MongoDB. It's easy to connect, it has official cloud storage for free till you reach 500mb, and NestJS has an adapter package to work easily with MongoDB and NestJS API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nothing is impossible!
&lt;/h2&gt;

&lt;p&gt;With this technical stack I created a template with important for each MVP project a common feature. This is a user authentication and authorization module. In this template endpoints for registration (/auth/register) and authentication (/auth/login) functionality are implemented. So you don't need to care about how to create and login users. Authorization logic is based on the JWT token exchange. After login action the user on the client-side will receive a signed JWT token, which will be used to authorize him on another protected endpoints. For this logic I added a guard (This is interceptor of the endpoint in the NestJS) with code for checking jwt token and his expiration state. I hope it would help anyone to don't waste the time in the implementation of the users' module for pet projects again, and again, and again...&lt;/p&gt;

&lt;h2&gt;
  
  
  Just do it! Let the dreams come true!
&lt;/h2&gt;

&lt;p&gt;So, you decide to try this template and how to start? &lt;a href="https://github.com/vladdekhanov/backend-node-template/generate"&gt;Click the link&lt;/a&gt; to generate your repository on the Github from this template or simply &lt;a href="https://github.com/vladdekhanov/backend-node-template"&gt;clone it&lt;/a&gt; from the Github repository page. When you pull this project on your pc you need to configure the project once. First of all go to &lt;code&gt;/config/.env.example&lt;/code&gt; and rename it to &lt;code&gt;/config/.env&lt;/code&gt; file. Here is your configuration of the project. Let me explain each variable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;JWT_TOKEN&lt;/strong&gt; - this is the key for signing your jwt token, &lt;strong&gt;strongly recommend&lt;/strong&gt; to change it to keep your app more secure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JWT_TOKEN_EXPIRES_IN&lt;/strong&gt; - duration of validity jwt token signed by application. 1 hour by default. This means that the user won't be authorized on any jwt guarded route even with a signed token 1 hour later. All supported values you can take at the &lt;a href="https://github.com/zeit/ms"&gt;ms utility&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MONGO_DB_CONNECTION&lt;/strong&gt; - connection to your MongoDB database. For pet projects I recommend using free &lt;a href="https://www.mongodb.com/"&gt;MongoDB Atlas&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's all! Now you just need to open a terminal, go to the project folder, type &lt;code&gt;npm start&lt;/code&gt; and go to &lt;code&gt;localhost:3000&lt;/code&gt; to see &lt;code&gt;Hello World!&lt;/code&gt; message. It means that everything is ok and you can implement your new awesome product. Happy hacking!&lt;/p&gt;

&lt;p&gt;If you like my article don't forget to subscribe me on the twitter :) &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>typescript</category>
      <category>node</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
