<?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 Iuliia Saprykina on Medium]]></title>
        <description><![CDATA[Stories by Iuliia Saprykina on Medium]]></description>
        <link>https://medium.com/@iuliia-proskurnina?source=rss-a6f17efef261------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*3eRscMFKL1Ju8fhtA0kjpw.jpeg</url>
            <title>Stories by Iuliia Saprykina on Medium</title>
            <link>https://medium.com/@iuliia-proskurnina?source=rss-a6f17efef261------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:06:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iuliia-proskurnina/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[AUTH with node.js (part third)]]></title>
            <link>https://iuliia-proskurnina.medium.com/auth-with-node-js-part-third-3205e5e8d3f2?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/3205e5e8d3f2</guid>
            <category><![CDATA[auth]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Mon, 09 Nov 2020 15:37:36 GMT</pubDate>
            <atom:updated>2020-11-09T15:37:36.814Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2eg7LjP3rSrYUZW7HKKhkg.jpeg" /></figure><p>After we created the user model, create user route and login route, next step — create authenticate action.</p><p>Let’s continue with my project.</p><p>First of all, we need to write route for authentication. I want to protect the questions database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5UCoRjkH5TcLRbXngbSaA.png" /></figure><p>And do not forget the authenticate function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LqnNw8pfMWvFpdy4MalbkQ.png" /></figure><p>Let’s try to get access to our protected recourse — question database in Postman.</p><p>Copy the token and paste it into Authorization:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JITex79y7u8gTs2nFzZ2Tg.png" /></figure><p>If there is something wrong with the token, you will see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DQriJEMup_JG8ZYQxUxgIQ.png" /></figure><p>If the token is correct, you will see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-zQtnHdSax8qKp_zxHlz3A.png" /></figure><p>Well, my questions database is protected now and without authentication users will be not allow to access it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3205e5e8d3f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AUTH with node (part second)]]></title>
            <link>https://iuliia-proskurnina.medium.com/auth-with-node-part-second-2f89bf402995?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f89bf402995</guid>
            <category><![CDATA[auth]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Fri, 16 Oct 2020 18:36:56 GMT</pubDate>
            <atom:updated>2020-10-16T18:36:56.576Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2eg7LjP3rSrYUZW7HKKhkg.jpeg" /></figure><p>After we created user model and migration, we need to create a route for login action. I will continue based on my project.</p><p>Next step — create a route for login action. Inside the app.js write following:</p><p>app.post(“/login”, login);</p><p>And we need to write the login function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_YCW3thJyLwLlzFgvwJh_A.png" /></figure><p>Let’s check our login route in Postman.</p><p>If you change your user data inside the body, let’s change password, you will see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WIX7mTx5wlb-w0ZvTG6DgA.png" /></figure><p>If the password is correct, when you send this request, you will see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IsYM71zpRdW-U5v8c35vkg.png" /></figure><p>The second part of AUTH with node done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f89bf402995" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AUTH with Node.js (Part First)]]></title>
            <link>https://iuliia-proskurnina.medium.com/auth-with-node-js-part-first-aad5f53dfedb?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/aad5f53dfedb</guid>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Thu, 27 Aug 2020 02:13:34 GMT</pubDate>
            <atom:updated>2020-08-27T02:13:34.060Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2eg7LjP3rSrYUZW7HKKhkg.jpeg" /></figure><p>AUTH is an important part for every project. The workflow of your application depends on how strong you protect your resources. The most common way to protect recourse — JWT and BCrypt.</p><p>Let’s do it. Based on my project I’ll tell how to do it in few steps.</p><p>First part — to create a user model and create migration.</p><p>In your terminal run:</p><p>createdb user</p><p>Then we need to create a migration file for user model. Run in your terminal:</p><p>npx knex migrate:make user</p><p>Inside created user migration file add attributes that you for your model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*SgT8hTEg3GRcxr7r-TbAxw.png" /></figure><p>After you set all attributes that you need for your model. Run migrate in your terminal:</p><p>npx knex migrate:latest</p><p>To export data from database inside the app.js write following:</p><p>const cors = require(“cors”);</p><p>const bodyParser = require(“body-parser”);</p><p>const bcrypt = require(“bcrypt”)</p><p>const knex = require(“knex”);</p><p>const jwt = require(“jsonwebtoken”)</p><p>const config = require(“./knexfile”)[process.env.NODE_ENV|| “development”]</p><p>const database = knex(config);</p><p>app.use(cors());</p><p>app.use(bodyParser.json());</p><p>module.exports = knex(config);</p><p>Next step — create a route for create new user action. Inside the app.js write:</p><p>app.post(“/users”, createUser);</p><p>And write the createUser function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5sFa4IlBr0YREaWe6E9jZA.png" /></figure><p>Let’s create a new user in Postman, if you everything did correct you should see the token and the user output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXjJCcjZmEY4oktfIq2v_g.png" /></figure><p>So, the first part of AUTH with node.js done. And after we created user, we have the secret token, that will allow us to protect resources.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aad5f53dfedb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Backend with Node.js step by step]]></title>
            <link>https://iuliia-proskurnina.medium.com/backend-with-node-js-step-by-step-c9afbb445992?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9afbb445992</guid>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Wed, 19 Aug 2020 17:52:32 GMT</pubDate>
            <atom:updated>2020-08-19T17:52:32.465Z</atom:updated>
            <content:encoded><![CDATA[<p>In my coddling life I used only Ruby on Rails for the backend before. But for my capstone project I decided to learn new technology. I chose to use node.js for my backend.</p><p>Based on my project let’s go through these steps to create the backend.</p><ol><li>To start, let’s create a new package.json and set up a git repository, run these in your terminal (make sure that you are in the right folder):</li></ol><p>npm init</p><p>git init</p><p>touch app.js</p><p>2. Now we need to install express library :</p><p>nix install express</p><p>3. After we need to create our server, which will run our website. Write these code inside the app.js:</p><p>const express = require(“express”);</p><p>const PORT = process.env.PORT || 3000;</p><p>const app = express();</p><p>app.listen(PORT, () =&gt; console.log(`Listening on … ${PORT}`))</p><p>4. Let’s set command to our backend. Inside the package.js write this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*8p7Rhc6EpEMu33f4HtHn7A.png" /></figure><p>Now you can run npm start in your terminal, and it will run your application.</p><p>5. Now, let’s create models. First, we need to install knex.js library (write the following code in your terminal):</p><p>npx install knex — save</p><p>6. Then we need to create a database:</p><p>createdb questions</p><p>7. Then we need to create knexfile.js file:</p><p>npx knex init</p><p>8. Inside the file knexfile.js we need to change:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*0y-9cQV1MgWqKydBaTVXCA.png" /></figure><p>9. Next we need to create a migration file for our questions model. Run in your terminal:</p><p>npx knex migrate:make questions</p><p>It will create a new migration file in your folder.</p><p>10. Go to migration file, which you just created and add your attributes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AK_-2jYt5eykEcHWfvTiUA.png" /></figure><p>11. After you set all attributes that you need for your model. Run migrate in your terminal:</p><p>npx knex migrate:latest</p><p>12. Let’s make some seeds. In your terminal run:</p><p>npx knex seed:make 01_questions</p><p>13. Inside the 01_questions.js file make your instances:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lEp3J1FYW7HoMEW3Kx0JkA.png" /></figure><p>14. To save it, run in your terminal:</p><p>npx knex seed:run</p><p>15. To export data from database we should to write following code inside app.js:</p><p>const knex = require(“knex”);</p><p>const cors = require(“cors”);</p><p>app.use(cors());</p><p>app.use(bodyParser.json());</p><p>module.exports = knex(config);</p><p>app.get(“/questions”, (request, response) =&gt; {</p><p>database(“questions”).select()</p><p>.then(questions =&gt; {</p><p>response.json({ questions })</p><p>})</p><p>})</p><p>We just created our backend with node.js. We have our questions model with some seeds. So know we able to fetch this data into the frontend.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9afbb445992" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to integrate flip cards into React app]]></title>
            <link>https://iuliia-proskurnina.medium.com/how-to-integrate-flip-cards-into-react-app-eab089c4df34?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/eab089c4df34</guid>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Mon, 10 Aug 2020 16:11:31 GMT</pubDate>
            <atom:updated>2020-08-10T16:11:31.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pPnQwd6J3FyUB8-HjKJTnQ.png" /></figure><p>Like any developer, I always try to add interesting animations to my projects. With React.js it can be very easy.</p><p>I want to add into my project flip cards animation.</p><p>And I want to show you how to do that based on my project “Rise and Shine”.</p><p>The main page of project looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*atjVRU_VKafy507nAMwB1A.png" /></figure><p>And I want to flip cards, when I click on button “Click to flip”.</p><p>Let’s do it:</p><ol><li>Install “react-card-flip” library. In your terminal run (make sure that you are in the right folder):</li></ol><p>npm install — save react-card-flip</p><p>2. Then import this library into your component where you want to use it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*uIWqCNnKzemn4agCmCbR6Q.png" /></figure><p>3. Then you should to create a function, which will control this action. In my case there is a functional component, and I need to set state, that will allows me to control flipping cards. So for set state I used hooks useState.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*elS1XCYSprU1epg-fnvoog.png" /></figure><p>4. After this I set the ReactCadrFlip component and inside this component I created two different div: one for the front side and one for the back side:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_E10PzJpOJmeSg4ezdKBg.png" /></figure><p>5. Inside each div I created a button on click which calls our controlling action HandleClick. So, that it. Very easy, so when I click on button “Click to flip” I can see the other side of my cards:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VHX9pm9NEuZE5iBEie4V2w.png" /></figure><p>And it works to each card.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eab089c4df34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to integrate music into your React app]]></title>
            <link>https://iuliia-proskurnina.medium.com/how-to-integrate-music-into-your-react-app-8c9233f35b18?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c9233f35b18</guid>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Wed, 05 Aug 2020 16:12:56 GMT</pubDate>
            <atom:updated>2020-08-05T16:12:56.402Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fZ6UDIyvzdoW9YwvfM-5oA.jpeg" /></figure><p>Music is a part of our life. And adding music to your application or website can show your personality. Let’s say that you already have React app or website. I will show you how to integrate music into your React app based on my project Rise And Shine.</p><p>I have such website, which can show you the sunrise time in each city. The main page looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*atjVRU_VKafy507nAMwB1A.png" /></figure><p>Let’s say, I want to hear some music when I click on button “Click to flip”. First of all you should to find the music, which you to hear in format .mp3, it should the link like for images and it should be free to access it.</p><p>In my case, I created in my backend the seed file with all data. Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QgaNLuy5DR9bxOq7ixLezA.png" /></figure><p>I found music for the Denver Card, the link looks like:</p><p><a href="https://freelistenonline.com/music/vkstream/775857">https://freelistenonline.com/music/vkstream/775857</a></p><p>You can use this site for search music for free.</p><p>In my React app I have LocationItem component where I render all cities cards. Before you start you should to install “react-sound” library in few steps:</p><ol><li>In your terminal run (make sure that you are in the right folder):</li></ol><p>npm install react-sound — save</p><p>2. Inside your component where you want to play the music import this library:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*7VeKTj7JXSxlwKKzOGsPdw.png" /></figure><p>3. Write the Sound component into your page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BqZ0_rCG4pwuMxGTJDgR9w.png" /></figure><p>You can set your own settings for this sound component. There are all props that you can set to music:</p><ul><li>url (string): The url of the sound to play.</li><li>playStatus (Sound.status.{PLAYING,STOPPED,PAUSED}): The current sound playing status. Change it in successive renders to play, stop, pause and resume the sound.</li><li>playFromPosition (number): Seeks to the position specified by this prop, any time it changes. After that, the sound will continue playing (or not, if the playStatus is not PLAYING). Use this prop to seek to different positions in the sound, but not use it as a controlled component. You should use either this prop or position, but not both.</li><li>position (number): The current position the sound is at. Use this to make the component a controlled component, meaning that you must update this prop on every onPlaying callback. You should use either this prop or playFromPosition, but not both.</li><li>volume (number): The current sound’s volume. A value between 0 and 100.</li><li>playbackRate (number): Number affecting sound playback. A value between 0.5 and 4 of normal rate (1).</li><li>autoLoad (boolean): If the sound should start loading automatically (defaults to false).</li><li>loop (boolean): If the sound should continue playing in a loop (defaults to false).</li><li>onError (function): Function that gets called when the sound fails to load, or fails during load or playback. It receives the arguments errorCode and description with details about the error.</li><li>onLoading (function): Function that gets called while the sound is loading. It receives an object with properties bytesLoaded, bytesTotal and duration.</li><li>onLoad (function): Function that gets called after the sound has finished loading. It receives an object with property loaded, a boolean set to true if the sound has finished loading successfully.</li><li>onPlaying (function): Function that gets called while the sound is playing. It receives an object with properties position and duration.</li><li>onPause (function): Function that gets called when the sound is paused. It receives an object with properties position and duration.</li><li>onResume (function): Function that gets called while the sound is resumed playing. It receives an object with properties position and duration.</li><li>onStop (function): Function that gets called while the sound playback is stopped. It receives an object with properties position and duration.</li><li>onFinishedPlaying (function): Function that gets called when the sound finishes playing (reached end of sound). It receives no parameters.</li><li>onBufferChange (function): Function that gets called when the sound buffering status changes. It receives a single boolean representing the buffer state.</li></ul><p>So, enjoy exploring the react.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c9233f35b18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AUTH Part Third (protecting resources)]]></title>
            <link>https://iuliia-proskurnina.medium.com/auth-part-third-protecting-resources-c5550d922a0b?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5550d922a0b</guid>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Fri, 12 Jun 2020 01:18:31 GMT</pubDate>
            <atom:updated>2020-06-12T01:18:31.521Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J1Dws2w8tKiudjT2Zdtiiw.jpeg" /></figure><p>Third part of AUTH — protection your resources. As any developer, I want to protect my resources, I don’t want unauthorized users to have an access to some resource. And for this purpose let’s do AUTH part third in simple steps:</p><p><strong>1 step </strong>— Create a route for resource that we want to protect</p><p>Inside the route.rb file write a new route for catalog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vw7V-6_8TewQ_7QDGVlTlA.png" /></figure><p><strong>2 step</strong> — Create a controller Catalog</p><p>Run in your terminal: rails g controller Catalog.</p><p><strong>3 step</strong> — Create a index action</p><p>Inside the Catalog_controller.rb write an index action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJtdtF7m5aHKodGx05ehgg.png" /></figure><p><strong>4 step</strong> — Check our steps in Postman.</p><p>If you did everything right before (1 part and 2 part of AUTH), you need to change type in Auth to “Bearer Token” and copy received token and paste it into empty window Token:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kwl5cByjTl9vpXGyqYbMsg.png" /></figure><p><strong>5 step</strong> — Check protection of your resource</p><p>Change the link to <a href="http://localhost:3000/catolog">http://localhost:3000/catolog</a> and method to “GET” and click Send. If your token is correct you will see this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yvD_DlMKmXDX6UzBxTNPwQ.png" /></figure><p>If there is no token, you will see this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y_Xr8znZKyV9lk4jrrG0fg.png" /></figure><p>If your token incorrect, you will see this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PHL932omtKge-p0D6PMXlw.png" /></figure><p>So, now our Catalog resource is protected and unauthorized person will not able to see the catalog content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5550d922a0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AUTH Part Second]]></title>
            <link>https://iuliia-proskurnina.medium.com/auth-part-second-32a4d7da7903?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/32a4d7da7903</guid>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Mon, 01 Jun 2020 17:47:28 GMT</pubDate>
            <atom:updated>2020-06-01T17:47:28.430Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>AUTH Part Second</strong></blockquote><p>Second part of AUTH — verify user identity in Rails. In previous post we already created a user controller, model and route for create action. Let’s continue with our simple example.</p><p><strong>1 step </strong>— Create a login route.</p><p>Inside the route.rb file write a new route for login action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*mJWDnCORDXPIVfGQcTbaiw.png" /></figure><p><strong>2 step</strong> — Create a controller Authentication</p><p>Run in your terminal: rails g controller Authentication.</p><p><strong>3 step</strong> — Create a login action</p><p>Inside the Authentication_controller.rb write a login action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hhzbd6XhKkgPjLeL46191w.png" /></figure><p><strong>4 step</strong> — Set gem “JWT”</p><p>Inside Gemfile write: gem “jwt”, then run in your terminal: bundle install.</p><p><strong>5 step</strong> — Check our verification in Postman.</p><p>If everything is ok, you will see your new token:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pFV8Lh6QiCnhTvbgVz4gbw.png" /></figure><p>If you change the username in Body, you will see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*akg5jmFiekbvnSkVfkZxsQ.png" /></figure><p>If you write a wrong password, you will see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ggyC9JVIljONcegXR0AkpA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32a4d7da7903" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AUTH Part First]]></title>
            <link>https://iuliia-proskurnina.medium.com/auth-part-first-3d7b80736825?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d7b80736825</guid>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Mon, 01 Jun 2020 17:32:29 GMT</pubDate>
            <atom:updated>2020-06-01T17:32:29.563Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LgZ_lUxoYZHsRPW7XFgRxw.png" /></figure><p>Some content or resources may be available for public consumption and don’t require any type of identification or authentication — think of basic web site content. However, protected resources do require additional security steps. The first step of access control at runtime is authentication because if we can’t reliably and securely validate the subject identity, how can we make appropriate decisions about what they can and can’t do? Think of authentication as a crucial precursor to authorization.</p><p><strong>Authentication</strong> is important because it enables organizations to keep their networks secure by permitting only <strong>authenticated</strong> users (or processes) to access its protected resources, which may include computer systems, networks, databases, websites and other network-based applications or services.</p><p>Let’s create an example of simple AUTH first part</p><p><strong>First part (create user)</strong></p><p><strong>1 step </strong>— Create a new rails app</p><p><strong>2 step</strong> — Install Bcrypt</p><p>Go to Gemfile and uncomment line with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*FWGt9DfBB8Y9L5OoLk78GA.png" /></figure><p>Run in your terminal: Bundle install</p><p><strong>3 step </strong>— Create a route to create a user action</p><p>Go to route.rb and write:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-4pIasVRiD93Ut8oe4p9XQ.png" /></figure><p><strong>4 step </strong>— Create a controller Users</p><p>Run in your terminal: Rails g controller Users. Then write a create action in Users_controller.rb:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*pnEXXDuBOG_QM4lW6mwgqg.png" /></figure><p><strong>5 step </strong>— Create a user model</p><p>Run in your terminal: Rails g model User. Inside the model user.rb write :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*vrIIf4WzaSxNuj7HEBIunQ.png" /></figure><p><strong>6 step </strong>— Create a migration</p><p>Set attributes inside the migration file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*iQfw4Jz-p7vIs3cwnWJdIw.png" /></figure><p>Run in your terminal: Rails db:migrate</p><p><strong>7 step </strong>— Create a new user with Postman</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0dNfoEPOxRVCrKGQb7bd8A.png" /></figure><p>So, the first part is done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d7b80736825" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Dive into CSS]]></title>
            <link>https://iuliia-proskurnina.medium.com/my-first-dive-into-css-2cbb9a020085?source=rss-a6f17efef261------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cbb9a020085</guid>
            <dc:creator><![CDATA[Iuliia Saprykina]]></dc:creator>
            <pubDate>Tue, 19 May 2020 21:11:04 GMT</pubDate>
            <atom:updated>2020-05-19T21:11:04.680Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>My First Dive into CSS</em></strong></blockquote><p>A software engineer tries to first of all create maximum correct functionality on his or her project. And the last task is to make a project design. Nobody likes CSS. However, if you are a full-stack software engineer you should explore this field too.</p><p>I would like to go through all of the steps of creating CSS based on our second project. My partner Hannah and I first made the functionality of our site. And before all of the CSS settings were configured, it was like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iwL9Y_L4IRw5sxUuR1Eu3A.png" /></figure><p>The HTML file of this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z257pHUPafKEXkbTBNMxmg.png" /></figure><p>First of all make sure, that you set all classes, which you want to design. Let’s start from background settings for the whole page. I want to set an image into background of the page (line 3), and I want to set auto setting to display this background (lines 4,5, 8), then I want to move it to the right side (line 6), and set the color for background (line 7).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2vWpOS4zo0H0uS7bppTPw.png" /></figure><p>Now our page looks much better:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cLX7wC4oV8apW8hnRhLNWg.png" /></figure><p>Let’s set some design for our header “Meditation Cube”:</p><p>I want to move the header to left side (line 17, 18), then I want to set the background image of my header (line 19), I want to see this image only behind the letters of this header (line 20, 21), I set the size, style, width, text location (line 22–26), and I want to set the space around my header (line 27).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_AtGEgTGH2Iw9nFuW7EX2A.png" /></figure><p>Now our page looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JIlzOgLpp9FTRRXuYF4z4Q.png" /></figure><p>Let’s create design for our main options. On the CSS file I chose class “explore-button” and input inside this class. I set the width of this button (line 36). I set the space around this button, size, text color, background color (line 40–43). Then I set a border around this button, set the thickness of this border, chose the color and set the radius of this button (line 45, 46). I set some space around the text inside the button (lines 46 -49). And I did the same setting for second button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*9FrSe56aSwATQkMQyXyt5g.png" /></figure><p>Now our page looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4Dx_TbmEIQB4cx6HmprzQ.png" /></figure><p>Let’s set the last two options. First, I chose the class “user-page”. I set the position of this class (lines 70–72), then I set the color (line 73), and I set the size of this class (lines 74–76). On lines 83–92 I set the size of the option window and submit button. I did the same for the “new-user” class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*byiY3Pm3-q_3Yd4e5kRQOg.png" /></figure><p>After all settings inside CSS file, the page will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P6NVi6biH3m4z_m5Jd1wtg.png" /></figure><p>Also, feel free to watch our presentation video for that project:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fc7EamBTS1uM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dc7EamBTS1uM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fc7EamBTS1uM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a9f1a6c112e56ce340ffb4609718a79/href">https://medium.com/media/6a9f1a6c112e56ce340ffb4609718a79/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cbb9a020085" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>