<?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 Albert Kim on Medium]]></title>
        <description><![CDATA[Stories by Albert Kim on Medium]]></description>
        <link>https://medium.com/@albert.kim?source=rss-79e778e4ef18------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RB1ecCvSuMmTb0h0Fq0Gog.jpeg</url>
            <title>Stories by Albert Kim on Medium</title>
            <link>https://medium.com/@albert.kim?source=rss-79e778e4ef18------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 07:23:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@albert.kim/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[How and why to create a freelance portfolio website]]></title>
            <link>https://medium.com/@albert.kim/how-and-why-to-create-a-freelance-portfolio-website-3e5e0c891117?source=rss-79e778e4ef18------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e5e0c891117</guid>
            <category><![CDATA[freelance-writing-tips]]></category>
            <category><![CDATA[portfolio-website-builder]]></category>
            <category><![CDATA[freelancer-portfolio]]></category>
            <category><![CDATA[freelance]]></category>
            <category><![CDATA[portfolio-website]]></category>
            <dc:creator><![CDATA[Albert Kim]]></dc:creator>
            <pubDate>Fri, 05 Aug 2022 08:00:17 GMT</pubDate>
            <atom:updated>2022-08-05T08:00:17.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BeWHYaglFOnOc0zqNqjWxQ.jpeg" /></figure><p>When clients look at your proposal for freelancing jobs, you’re competing against dozens of other proposals.</p><p>So you have to stand out but how do you do that?</p><p>One simple way is to have a professional portfolio website that sells for you. It’s like your own sales representative with 24/7 availability.</p><p>Put yourself in the shoes of a client. The client posts a job and gets four applications.</p><ol><li>Sends a Word document of their resume.</li><li>Sends a Google Docs link.</li><li>Sends 15 different links to articles they wrote.</li><li>Sends a website with a domain of their own name or business.</li></ol><p>Which link is the most <em>enticing</em>? Which person looks the most <em>professional</em>? Which person looks the most <em>serious</em> about their business?</p><p>The answer is clear, <strong>the freelancer with a portfolio website with their own domain is the most professional looking one.</strong></p><h3>A portfolio website signals your professionalism.</h3><p>A few points about what a portfolio website shows your clients.</p><ol><li>You’re serious about your freelancing business.</li><li>You’ve invested time, money, and effort into your business.</li><li>You instantly look more professional compared to your competitors who give a link to a Google Drive folder or platform profile.</li><li>You’re capable of accomplishing some sort of achievement; putting together a professional website is a non-trivial task that many people give up on.</li><li>You’re not an amateur looking to get started or try out freelancing. Businesses work with businesses, not amateurs.</li></ol><p>This information is delivered immediately to clients by showing a link to your website. You don’t need to spell it out for them, the message is delivered.</p><h3>Stop wasting your energy sending pitches into the void.</h3><p>If you’ve ever sent out many proposals or pitches and saw no results, then you know how demoralizing or frustrating it can be to be a freelancer.</p><p>If you had a professional portfolio website attached to those pitches or proposals, how many more gigs would you have landed?</p><p>Even if it only lands you one more gig then it’s worth it.</p><p>You spend less effort finding work, and more time working and earning a living.</p><p>Now the next question, how do you create a portfolio website?</p><h3>Portfolio website options</h3><p>You probably are aware of a few options like Wordpress, SquareSpace, Wix, Carrd, and some others.</p><p>They are solid choices except for a few reasons. Namely, price, difficulty of use, hosting, and other reasons.</p><p>All those reasons are why I built an option designed specifically for freelance writers. It’s called <a href="https://leavewithaweb.site/">leavewithaweb.site</a> and it’s the easiest way to get a portfolio website.</p><p><strong>You don’t need:</strong></p><ul><li>A domain</li><li>Hosting servers.</li><li>Any technical configuration.</li><li>A theme from a theme marketplace. And then install that theme.</li><li>Coding knowledge.</li></ul><p><strong>All you need to do is:</strong></p><ul><li>Click a few buttons</li><li>Enter your content like in any other form.</li><li>Sign up.</li><li>Activate your premium account.</li><li>Press deploy.</li></ul><p>No themes, hosting, technical configuration, learning a complicated interface, and all that.</p><p>My website is the most seamless experience from going from no website, to a live website that you can link to clients in under 30 minutes.</p><p>Other options aren’t designed specifically for freelancers with the intention of converting prospects into clients.</p><p>You only need to enter your content, everything else is taken care for you.</p><p>With Wordpress, you have to buy a template, find hosting, install Wordpress, install your theme and template, use the Wordpress interface to design your website, and then continuously keep it updated over time.</p><p>With Squarespace and Wix you’re paying premium prices for a website. Do you really want to pay 20 a month just to have a portfolio website up?</p><p>For $6 a month you can have a portfolio website with my website except you don’t have to pay for hosting, find a template, buy a template, upload a template, learn how to use Wordpress, install plugins, maintain it, or anything.</p><p>You just have to select a template, enter your content like your name and portfolio items, press publish, and boom, you have a live website.</p><p>Ready to get a website and dramatically increase your chances of landing a new gig?</p><p>Click this <a href="https://leavewithaweb.site/blog/how-to-create-a-freelance-writer-portfolio-site-for-free">link</a> to see the step by step guide for creating a website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e5e0c891117" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing a new portfolio website maker for freelance writers]]></title>
            <link>https://medium.com/@albert.kim/introducing-a-new-portfolio-website-maker-for-freelance-writers-50689ba909f9?source=rss-79e778e4ef18------2</link>
            <guid isPermaLink="false">https://medium.com/p/50689ba909f9</guid>
            <category><![CDATA[freelance-writing]]></category>
            <category><![CDATA[freelancing]]></category>
            <category><![CDATA[freelancer-portfolio]]></category>
            <category><![CDATA[portfolio]]></category>
            <category><![CDATA[freelance]]></category>
            <dc:creator><![CDATA[Albert Kim]]></dc:creator>
            <pubDate>Mon, 04 Jul 2022 12:51:49 GMT</pubDate>
            <atom:updated>2022-07-04T12:51:49.181Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4a7jVw9OIZIRJ_ktE9c9Ug.jpeg" /></figure><h3>Start winning writing clients today by leaving with a new portfolio website for your freelancing business.</h3><h3>How I landed clients with no freelancing experience.</h3><p>Picture this — it’s 2015, and you drop out of college to become a successful freelancer.</p><p>You decide,</p><blockquote><em>I’m gonna make it as a freelancer or I’m not gonna make it.</em></blockquote><p>So you do what every successful freelancer does — spend your time building a portfolio website.</p><p>You try designing your own website but the furthest you get are some coloured boxes that don’t look right. You don’t know anything about padding, margin, or web design yet.</p><p>So you go to Themeforest and start looking for templates.</p><p>You pick one that looks cool and start personalizing the content.</p><p>You get it live.</p><p>You send some amateur proposals to clients you find on Craigslist and reddit.com/r/forhire.</p><p><em>And you get responses. They want to have a call with you.</em></p><p>Remember, you don’t even have 2 months of experience as a freelancer, and already you have clients lining up to do business with you.</p><p>On the phone call I tell them I didn’t make the website myself, it was a template. They don’t care. They were already sold.</p><p>What was the source of this? My name attached to an impressive portfolio website.</p><h3>A portfolio website is the new resume.</h3><p>Instead of putting Harvard on your resume to get a job, you show off your own website that wows clients to land gigs.</p><p>A portfolio website showcases a few things:</p><ol><li>You’re serious about your business.</li><li>You have the ability to turn an idea into reality (by having a live website).</li><li>It highlights your experiences and skills in one spot.</li><li>You control the story about yourself as a professional.</li></ol><p>It immediately separates you from the rest of the freelancers who didn’t put in the time and effort to get a website live.</p><p>Just like having a degree puts you in a different pile of resumes for HR recruiters, having a website puts you on the short list for clients looking for freelancers.</p><p>If only it were easy to make a portfolio website…</p><h3>The problems with creating a portfolio website with today’s tools.</h3><p>There’s a lot involved in creating a portfolio website.</p><p>You need a template (templates cost $40 at minimum), or know how to design a website.</p><p>You need to know how to edit code, or use an expensive tool like SquareSpace or Wix. ($19 a month for a website? Seriously?)</p><p>You need web hosting, know how to use it, and figure out which options are good (the cheapest, slowest, easiest options are $5 a month).</p><p>You need a domain, know how to buy one, and how to connect it to your web host.</p><p>And finally, after all that, you need to know what kind of content to put on your website.</p><p>I encountered these issues in 2020 when I was looking to create a new portfolio website.</p><p>I thought, it’s 2020, shouldn’t there be a better way of simply creating a personal portfolio website that isn’t SquareSpace or Wix?</p><p>I didn’t want to spend $20 a month just to have a website up so I ended up downloading a website template, editing the content in the code, and putting that up on some web hosting.</p><p>I knew how to write code and even for me it was difficult to find a good solution for my needs.</p><h3>So I made a tool that gets a live portfolio website in 30 minutes.</h3><p>Then I thought, <em>all I’m doing is editing the content in some HTML code.</em></p><p>Then the idea for my web app was born.</p><p>I could take what I did to get a portfolio website, and turn that into a web interface for people who don’t know how to edit code.</p><p>And since starting to prototype my idea in the summer of 2020, I’m finally ready to release my app for the public for real in the summer of 2022.</p><p>What problems am I solving?</p><p>The simple problem of getting a live website for freelance writers.</p><p>There are a lot of options out there. None are great in my opinion.</p><p>Do you want a fantastic looking website with a lot of features? Well, get ready to pay.</p><p>Do you want a highly customizable website for your unique needs? Well, get ready to code.</p><p>Do you want a cheap and simple way to get online? Well, get ready to handle a lot of technical configuration and know what tools to use.</p><p>All the methods available today take days to get going. And that’s before writing any content.</p><p>My web app handles everything you need so all you need to do is input your content.</p><p>If you know what to write and input, then you can get live in 30 minutes.</p><p>Most other options you need to watch a 30 minute Youtube video to even get started.</p><p>So what do you need to get a portfolio website?</p><p>You need a website that’s pre designed, check.</p><p>You need web hosting, check.</p><p>You need a domain, check. (You can use a custom subdomain, you don’t need a .com to get live with my tool).</p><p>You need content, check.</p><p><em>That’s it.</em></p><p>No technical configuration, I handled everything.</p><p>Just type your words, click a few buttons, press publish, and then you have a URL you can link to your clients.</p><p>Sound great?</p><p>What are you doing in the next 30 minutes?</p><p>Want to have a portfolio website in 31 minutes? That will benefit you for the rest of your career?</p><p>Let’s get started.</p><p>Visit my <a href="https://leavewithaweb.site/">website</a> and leave with a portfolio website in 31 minutes.</p><p><strong><em>Sign up today for a special introductory price of $6 a month to get a live website.</em></strong></p><p>The price will go up to $9 in 1 month so sign up to save money!</p><p>If it helps you land one client, then it’s paid for itself multiple times over.</p><p>Or would you rather buy another coffee at Starbucks for the same price? What do you think will help you land more clients, one more coffee, or a professional portfolio website?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50689ba909f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Step By Step Guide To Finding Freelance Writing Work Without Any Experience]]></title>
            <link>https://medium.com/the-post-grad-survival-guide/the-step-by-step-guide-to-finding-freelance-writing-work-without-any-experience-ef46cd33dc2?source=rss-79e778e4ef18------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef46cd33dc2</guid>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[freelance-writing]]></category>
            <category><![CDATA[freelancing]]></category>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Albert Kim]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 03:00:00 GMT</pubDate>
            <atom:updated>2020-07-02T07:36:21.481Z</atom:updated>
            <content:encoded><![CDATA[<h4>I’ve distilled the steps involved in every gig I landed.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8kkAnawoAbWXrC5gOE1IVw.jpeg" /><figcaption>Photo: Paige Cody/Unsplash</figcaption></figure><p>I started freelancing in 2016. I thought it would be easy and that I would be successful right away.</p><p>Wrong.</p><p>It was the start of a long and hard journey with many ups and downs but it was worth it. It was those ups and downs that made me confident in my abilities to make all my money online as a freelancer.<br> <br>It’s thanks to freelancing and finding all my clients online that I’m able to travel around the world. I’m writing this post right now in Taipei, Taiwan. Before Taipei, I was in Tokyo, Japan. <br> <br>From my 4+ years as a freelancer, I’ve extracted the steps involved in almost every gig I’ve landed. These are reliable actions you can take to ensure you find work without getting lucky.<br> <br>Here is how you go from no experience to landing your first gig as a freelance writer.</p><h3><strong>1. Pick something to write about</strong></h3><p><em>If you have a topic you want to specialize in, you can skip this part.</em></p><p>Choosing a niche isn’t going to lock you into a specialty like in medieval times. One great thing about being a freelancer is the freedom, and that means you’re free to enter a new niche at any time.</p><p>So don’t get too caught up in this process. The important thing is to take steps in whatever direction so you can get a sense of where you want to go.</p><blockquote><strong><em>Most people think about two things when choosing a niche: money and passion.</em></strong></blockquote><p>How much can I get paid to write in this niche?</p><p>How much interest do I have in this niche?</p><p>Most topics can make money. Some topics make more money than others.</p><p>2–7 cents per word would be typical for topics like dogs, pets, video games, art, outdoors, or something similar.</p><p>7 cents per word would be low (but not unheard of) for topics like law, medicine, software, engineering, business, finance, or something similar.</p><p>This doesn’t mean there aren’t law, finance, medicine, etc… companies that buy content at 3 cents a word, but it’s more common for them to spend more than the first list.</p><p>You probably already have some topics in mind that you’d be interested in writing about but aren’t sure if you can find work in this area.</p><p>Some niches do have a lot more work than others. If you write about diamond necklaces or gardening, there’s probably less work out there compared to software or finance niches.</p><p>To get a better idea of the market for your writing niche, browse job boards like Problogger, Upwork, r/forhire, r/hireawriter, fiverr, freelancer. There are many job boards out there to browse. See if what you want to specialize in has any job postings.</p><p>If you’re starting fresh, this could be a good opportunity to pick a niche you want to enter but may not have experience in. You may not know anything about finance right now, but what if you spent 4 hours a day studying it for the next 6 months? Think long term. You can get to a place where you can demand high rates if you put in the work to study a topic and create a portfolio that demonstrates your expertise.</p><p>Here’s an exercise to help you decide some possible niches.</p><p>Open a blank notepad or writing app and copy and paste this in:</p><blockquote><strong>“What am I willing to RESEARCH AND WRITE about, for HOURS AT A TIME, for BUSINESSES to get PAID?”</strong></blockquote><p>Read it, and then start typing the first topics that come to your head. Don’t think about it, just type. Hopefully, some topics enter your head.</p><p>Then start reading and researching the industry. Get a better idea of what kind of content businesses are putting out and see if you would be interesting in creating similar content.</p><h3><strong>2. Create writing samples</strong></h3><p><em>Creating writing samples is what will make your efforts worthwhile.</em></p><p>You can send 1000 proposals to companies but if you show up with nothing to prove your ability to do good work, then you’re probably going to face 1000 rejections. Unless you’re skilled at copywriting and persuasion of course.</p><p><strong>This is why you need to create writing samples.</strong> Your client wants to know that you’re capable of delivering what they need. The easiest way to do that is to show them you’ve done it before.</p><p>Remember, content writing isn’t a personal journal. You’re supposed to write about things that help other people, not about what makes you feel good.</p><blockquote>When you create writing samples, your goal should be to give your insight and knowledge to people in an industry that helps them with something they’re struggling with.</blockquote><p>If you don’t have the experience to know something insightful you can research to find something.</p><p>Here’s an example and how I got into technical writing. I never thought I’d be a technical writer, I kind of stumbled into it.</p><p>As a web developer, one topic I struggled with was user authentication. This was a hump that I couldn’t get over for years. Eventually, I found a great Youtube tutorial about the subject and managed to implement a user authentication system myself.</p><p>I knew that this topic was something other developers would be struggling with as well so writing about it was going to be valuable.</p><p>This wasn’t my first article in web dev, but it was by far my most ambitious subject.</p><p>I spent around 5 days writing the article and put a lot of effort into it. I posted it to r/webdev and it “went viral” and reached the frontpage of the very popular subreddit.</p><p>With this high effort post, I created a valuable asset that helped launch my career as a freelance technical/software writer.</p><p>I could go on about this story and I will in a future post but to wrap things up:</p><ul><li>I had insight about something people in an industry struggled with.</li><li>I was motivated to write something big to advance my career.</li><li>I wrote the post, posted it on Medium, submitted it to r/webdev, and it went kind of viral.</li><li>That article was an asset I used to launch my career as a freelance software/technical writer.</li></ul><p>Without this article, I would have nothing impressive to show in my proposals.</p><p>Do the research, think of a problem, and write an article solving that problem.</p><p>Post it to Medium so you don’t have to waste time setting up your own website.</p><p>Medium is a great place to build a portfolio and linking to it provides instant credibility thanks to its brand. Post the completed article to some discussion boards. Reddit, Quora, HackerNews, wherever. See if it garners attention.</p><p>Think of creating writing samples as practice for your future job. If you can’t write an article about a topic of your own choosing, what makes you think you’ll be able to write about a topic that a client assigns you?</p><p>Try to have at least 1–3 samples you can link to when sending proposals.</p><h3><strong>3. Learn about how to send a proposal</strong></h3><p>Now that you have a niche and writing samples, it’s time to learn how to send a proposal.<br> <br>There is a formula that you can follow for most proposals.<br> <br>This is a skill that’s related to copywriting and persuasion but if you follow a formula you’ll still be able to find results.<br> <br>The formula involves these parts:</p><ul><li>Read the entire job post.</li><li>Move on if the job isn’t a right fit for you.</li><li>Reference the task they’re asking about.</li><li>Tell them this is a good fit for you because…</li><li>Provide examples of work you’ve done related to the job.</li><li>End with a closing point and a call to action.</li></ul><p>Here is an example:</p><p>—</p><p>Hey there! (or use their name if you can find it)<br> <br>Just read your job posting, it looks like you’re looking for a writer who can create content for your Python coding blog.<br> <br>This sounds like a perfect fit for me. I’ve been coding in Python for 3 years and have written many articles about it.<br> <br>Here are some examples of my work:<br> <br>(link to article) — an article about creating a Django server that reached the frontpage of r/python, has 5000+ views, and 300+ claps on Medium.<br> <br>(link to ebook) — an ebook I wrote for Apple about variable names in Python.<br> <br>(link to article) — a tutorial about how to create animations in Python.<br> <br>I’d love to talk more about the job you need help with. Are you available for a quick call to chat about your project?<br> <br>Thanks,<br>Your name</p><p>— <br> <br>This isn’t the only possible proposal available, but it’s a formula that worked for me.<br> <br>Like playing the piano, basketball, storytelling, essay writing, you have to learn the rules before you can break them.<br> <br>Research proposal writing. Practice. Send many proposals. Take this formula and apply it to your own offering. <br> <br>Once you’re comfortable with this process, you can break the rules and start playing around.<br> <br>Many of my recent proposals I’ve gotten replies from are from proposals where I played around a bit. <br> <br>Practice the formula and the skill of sending proposals. Once you’re experienced and have sent off 100s of proposals, you’ll be able to play around with them.</p><h3><strong>4. Find platforms and locations where work is posted</strong></h3><p>I could send you a list of websites to visit but you should be able to research this yourself. <br> <br>But the platforms I’ve had the best success have been:</p><ol><li>Upwork</li><li>nDash</li><li>Problogger</li><li>r/forhire</li></ol><p>At least 95% the gigs I’ve gotten over the past 3+ years have been from these websites.</p><h3><strong>5. Start sending proposals</strong></h3><p>There’s a lot of inertia for beginners when it comes to reaching out for jobs. If you’ve never reached out to anyone before you’re probably nervous and very unsure if you’re wasting your time.</p><blockquote>Here’s the thing — if you want freelance work, you have to send proposals, there’s no way around it.</blockquote><p>Think of sending proposals to get a gig like walking to a destination.</p><p>You have to shower, put on clothes, and walk out the door (overcoming inertia).</p><p>Then you have to take steps and walk to your destination (each step is like a proposal).</p><p>You won’t reach your destination without taking those steps.</p><p>Just like you won’t get a job without sending many proposals.</p><p>Each step you take is “worthless” but without the accumulated effort of the many steps you took, you won’t reach your destination.</p><p>Many of the proposals you send will be like those worthless steps you took that feel inconsequential. But without the accumulated effort of many proposals, you won’t get a gig. It’s that simple.</p><p>Traveling to a destination might take 1000 steps. Landing a gig might take 100 proposals. But it’s the accumulated effort that counts.</p><p>Give yourself a reward for every proposal you send. That thing you want to distract yourself with? Send one proposal and then indulge. The next proposal you send will be easier because you got over the initial hump.</p><p>Set a system. 10 proposals a day and then you can feel good about your productivity for the day and relax.</p><p>But remember, only apply for jobs that you can do or fit with your offering. Don’t waste your time or your client’s time by applying for a job you can’t do.</p><h3><strong>6. Once clients start responding…</strong></h3><p>If you’ve made it rain with proposals, some clients should start dripping in.</p><p>From my experience, the faster you respond, the better your chances are of actually getting the job.</p><p>At this point, your job is to move the conversation forward to a job assignment or to figure out if the job isn’t a right fit for you.</p><p>Engage the client. Be nice! Be respectful, more respectful than they are to you! Unless they’re being totally unreasonable and rude (which by the way, pretty much only happens with clients that pay very little which makes a lot of sense).</p><p>Ask questions to start clarifying what the job is. If you’re lucky, the client will know what they want and will guide the process and you can just start with whatever work they have.</p><p>But sometimes the client isn’t used to hiring a freelancer and this is where your expertise comes in.</p><p>Try and extract the exact requirements and then make the next step.</p><p>The next step might be to create an outline.</p><p>Giving something concrete for everyone to move past is what you’re looking for at this step.</p><p>If both parties know that the next step is to research the topic and then deliver an outline, everyone can walk away from the meeting satisfied.</p><p>For the freelancer, it’s to work on the outline, for the client, it’s waiting for the outline.</p><h3><strong>7. Do the work, get paid</strong></h3><p><strong>You got what you were looking for, a gig. Now it’s time to do a good job!</strong></p><p>Spend that time, do the research, stop playing the game, cancel your plans, make coffee, sit down, and work!</p><p>Someone giving you a gig is an opportunity to be grateful for. The fact that you get to work while sitting down, inside, on a computer, is a blessing. Not only that, you get to work from home whenever you want.</p><blockquote>Unless you want to go back to commuting to a job in the physical world, you need to make an effort to do a good job.</blockquote><p>Not only for your client but for yourself as well. Clients will come and go, but the belief that you have what it takes to make it as a freelancer is what will keep you going.</p><p>So do the job, submit the job, and then get paid.</p><p>Many advanced freelancers will tell you to get paid 50% or 100% upfront. Sure, down the line this is an option, but for beginners, and people working through platforms like Upwork, doing the work first and then getting paid is typical.</p><p>You might get scammed. That’s ok. We’ve all been there. I’ve been scammed before and you know what? The scams are what taught me how to distinguish between real people wanting to do business, and scammers trying to take from me. Now I can spot a scammer a mile away, so don’t fear getting scammed, it’s useful for you in the long run.</p><p>Remember, it’s easier to get gigs from a client who was impressed with your work than from starting from scratch and repeating the cycle again.</p><h3><strong>8. Repeat</strong></h3><p>Do it all over again.<br> <br>Practice your craft.<br> <br>Upgrade your business skills.<br> <br>Build your portfolio.<br> <br>Send proposals.<br> <br>Do the work.<br> <br>Get paid.<br> <br>A freelancer lives in a Sisyphean cycle of reaching out for work, doing the work, and getting paid. <br> <br>This was one of the more frustrating parts of the lifestyle but I got used to it.</p><h3><strong>Final thoughts and recap</strong></h3><p>To recap, the steps to getting your first gig as a freelance writer are:</p><ol><li>Pick something to write about.</li><li>Create writing samples.</li><li>Learn about how to send a proposal.</li><li>Find platforms and locations where jobs are posted.</li><li>Start sending proposals.</li><li>Move the conversation forward when the client responds.</li><li>Do the work, get paid.</li><li>Repeat.</li></ol><p>From my experience, the most important part of this process is the part about proposals.<br> <br>I’ve landed jobs without any experience or had any business getting thanks to a great proposal. <br> <br>It’s also a numbers game. You CAN get regular, consistent, work as a freelancer. IF you regularly, consistently, send GOOD proposals.</p><p>Eventually, you’ll probably want some inbound sales from the strength of your brand, or to create equity in a business, but those are advanced topics for another day.</p><h4><strong>The Mini Post-Grad Survival Guide</strong></h4><p>A 5-day email course with amazing tips on budgeting, investing, and productivity for 20-somethings. <a href="https://morning-darkness-5176.ck.page/75ec2d5152">Sign up for free</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef46cd33dc2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-post-grad-survival-guide/the-step-by-step-guide-to-finding-freelance-writing-work-without-any-experience-ef46cd33dc2">The Step By Step Guide To Finding Freelance Writing Work Without Any Experience</a> was originally published in <a href="https://medium.com/the-post-grad-survival-guide">The Post-Grad Survival Guide</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Difference Between Freelancing as a Writer Vs. as a Developer]]></title>
            <link>https://medium.com/honest-creative/the-difference-between-freelancing-as-a-writer-vs-as-a-developer-20dd12abdef6?source=rss-79e778e4ef18------2</link>
            <guid isPermaLink="false">https://medium.com/p/20dd12abdef6</guid>
            <category><![CDATA[work]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[freelance]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Albert Kim]]></dc:creator>
            <pubDate>Fri, 26 Jun 2020 16:01:01 GMT</pubDate>
            <atom:updated>2020-06-26T16:01:01.761Z</atom:updated>
            <content:encoded><![CDATA[<h4>I’ve tried both. Here’s what I learned.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3X6l6tQbo4xrkBIjbtJLAg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@josephgruenthal?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Joseph Gruenthal</a> on <a href="https://medium.com/s/photos/freelance?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The difference between writing and web development? Probably a lot right?</p><p>I’ve worked as a freelancer selling both skills and I have to say that there is indeed a large difference between the two.</p><p>If you’re facing a fork in the road between these two paths, or are interested in learning more about what it’s like to work as a freelance writer or web developer, I’ve done both for years and will share my experiences in this post.</p><p>The main difference, between the actual work, I think is the amount of freedom you truly have. When I envisioned myself as a freelancer, freedom was my main goal. With writing, I have largely achieved that goal, with web development, it was a struggle.</p><p>Here is what I’ve learned in working as a freelance writer and a web developer.</p><h3>The clients</h3><p><em>Who needs to buy writing?</em></p><p>Businesses that are generating revenue and need more marketing material.</p><p><em>Who needs to buy app development?</em></p><p>Any Joe Shmoe with an idea.</p><blockquote>The difference is huge.</blockquote><p>One has a budget, an existing business, goals, employees, and a clear picture of what they’re looking for.</p><p>The other, is usually paying out of their own pocket, is enamored with the idea of startup founders, and has no idea what they want other than a vague idea.</p><p>Of course, not every app development client is like this, but from my years of experience looking for work as a developer, vetting, and finding clients is the worst part of the job.</p><p>There will be more professional agency types that look to hire a freelance developer but even they can be a headache. Why? Because they’re often price shopping.</p><p>They’ll get you on a phone call just to ask for your price and then talk to 15 other developers to get their price.</p><p>Why is this? Because developers are a dime a dozen, and there are tons out there looking for freelance work. Agencies and clients have their choice of many developers to choose from, and the price is a huge factor in deciding who they go with.</p><p>Compared to my experience as a writer, when a client talks to me, they’re straight to business and aren’t price shopping. They have a budget, and a goal (800-word article, ebook, whatever), and just want to start because they have other things to do.</p><p>How often do marketing managers offer equity in their nonexistent business for an ebook? This happens all the time when talking to coding clients, and it’s annoying every time.</p><p>I think niching into a more specific skill offering is a large part of this.</p><p>When I was a web developer, my offering was React.js and Node.js coding. Tons of people offer this so clients have tons of options.</p><p>As a writer, my areas of expertise were in Dota 2 esports and technical/software writing. Not many people work as a Dota 2 or software writer.</p><blockquote><strong>My advice: filter out awful clients from good ones by building a personal brand or specializing in something rare.</strong></blockquote><p>If clients see you have clout in the industry or you have the rare skill they need to hire, then you won’t have to compete against dozens of other developers who don’t stand out in the crowd.</p><p>Or you could grind out proposals and meetings until you find clients, either way works.</p><h3>Client requirements</h3><p><em>Coding is literally engineering.</em></p><p>Does engineering sound like something a freelancer should do? Not really, and this is one of the reasons why I don’t think development and freelancing have a harmonious relationship.</p><p>Regarding project requirements, app development has deep, multi-layered, non-trivial requirements.</p><p>Writing is much more simple and straight-forward.</p><blockquote>“I need an 800-word article about the benefits of continuous integration for software development teams. Here’s a title. Please add this keyword in the article at least three times.”</blockquote><p>How badly can you mess that up? You would create an outline that touches on all the points you intend to write about, get it approved, and then write the article. If something needs to be changed, it’s usually not a big deal.</p><p>Compared to app development…</p><p>“I need an app.”</p><p><em>“Alright, do you need a web app or a mobile app?”</em></p><p>“Both?”</p><p><em>“And what features do you need, a landing page, user authentication, admin panel? Dashboards? Analytics?”</em></p><p>“All of it? I want a website like Facebook for double dating.” (true story)</p><p>There’s security, there’s design, there’s production, testing, approval, code reviews, there’s tools, frameworks, libraries, and tons of more things you have to consider with every non-trivial app project.</p><p>Entire industries are devoted to just one area in the list above.</p><p>As a solo freelancer, you’re facing a daunting task when you’re solely responsible for an entire app. If your client pays you well, you’re experienced and have time, then it’s not too bad.</p><p>But you’re much more likely to run into clients who have no clue about the scope of their project, think $2000 for a Facebook-like website is expensive, and are in over their heads.</p><blockquote><strong>This is why I recommend freelance app developers not to work directly with clients</strong>.</blockquote><p>Gathering requirements, project scope, and enforcing it is no trivial task.</p><p>Working with an agency with personnel dedicated to extracting requirements will save you from a ton of stress and from burning out by doing things that are very different from coding.</p><h3>The work itself</h3><p><em>What I appreciate about writing is that you’re judged on the final product.</em></p><p>With coding, not only are you judged on the final product but on your process of working as well.</p><p>What I mean by that is, the final piece of a writing project is self-evident.</p><p><em>“Here’s my 800-word article.”</em></p><p>The client can then read the article and ask questions that will be evidenced by the final product.</p><p><em>“Does the story make sense? Is the narrative right? Are the keywords used? Does this article convey the tone we’re looking for?”</em></p><p>The client can answer these questions just by reading the article.</p><p>How you wrote the article doesn’t matter, as long as it’s well written.</p><p>How you researched the article doesn’t matter, as long as the sources are credible and sourced.</p><p>What software you used doesn’t matter, as they’re all pretty similar and you can just copy and paste your work if anything.</p><p>All you need to do is complete the final product and your work is “done.”</p><p>But with coding, the process and final product are both up for judgment.</p><p><em>“Is this code efficient? Will this code be reusable? Are the files and folders following convention? Are the variable names conventional?”</em></p><p>How you write your code matters because other people will likely have to work with it.</p><p>The style you write your code in matters because your team probably has a convention to follow.</p><p>Your knowledge and experience matter because bad code is worth less than no code.</p><p>Not only that, but the final piece of software is also to be judged as well, perhaps more harshly than the code itself.</p><p>Is this apart of the job? Yes, but I didn’t sign up to be a freelancer to be beholden to such tediousness.</p><p>The process of coding is more serious than writing. As stated earlier, it’s literally engineering. Writing is more of an art. This is why standards are stricter in coding, as it should be.</p><p>How I do my work should be up to me. Judge me on my final piece, but let me work how I wish. This is a major part of why I enjoy working as a writer more than a coder.</p><p>I don’t work well with too many constraints.</p><p>Sure, writing has its constraints as well. Grammar, headings, style, tone, narrative, cohesiveness. But compared to coding, it’s way more relaxed.</p><h3>Final thoughts</h3><p>Growing up, I never considered writing as a means to earn a living. No one around me was a writer or said they wanted to be one.</p><p>Engineers, doctors, lawyers, managers, teachers, and other similar jobs were what everyone talked about. None of these careers spoke to me; matter of fact, no career spoke to me.</p><p>The more jobs I worked, the more I learned that I didn’t want to work a job.</p><p>So what was left? Freelancing. I struggled hard in the beginning but never gave up because I knew working a job wasn’t an option I would be happy with.</p><p>I started out coding, but I learned the hard way that being a freelance engineer requires involvement bigger than a real job.</p><p>Then I tried out freelance writing and learned that it’s a match made in heaven.</p><p>Writing clients just need you to write something and that’s it. Yes, there will be some clients that are very involved in how you work, but that’s not unique to writing.</p><p>If you want to become a freelancer to work how you want, when you want, and be judged solely on the final piece of work you create, then consider becoming a freelance writer!</p><p>If you’re highly technical, enjoy tinkering and engineering, being apart of a team to create something bigger than yourself, then consider coding as a career!</p><h4><a href="https://honestcreative.substack.com/">Turn Blogging Into a Career</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20dd12abdef6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/honest-creative/the-difference-between-freelancing-as-a-writer-vs-as-a-developer-20dd12abdef6">The Difference Between Freelancing as a Writer Vs. as a Developer</a> was originally published in <a href="https://medium.com/honest-creative">Honest Creative</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Three Ways To Solve The Foreign Exchange Rate Problem For Canadian Digital Nomads]]></title>
            <link>https://medium.com/@albert.kim/three-ways-to-solve-the-foreign-exchange-rate-problem-for-canadian-digital-nomads-6f2154b2e2ad?source=rss-79e778e4ef18------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f2154b2e2ad</guid>
            <category><![CDATA[digital-nomads]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[travel]]></category>
            <dc:creator><![CDATA[Albert Kim]]></dc:creator>
            <pubDate>Mon, 11 May 2020 08:40:36 GMT</pubDate>
            <atom:updated>2020-05-11T08:40:36.962Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghhzVFMsyD6ZNLB6wXAlcA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@belart84?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Artem Beliaikin</a> from <a href="https://www.pexels.com/photo/person-holding-10-us-dollar-banknote-in-front-of-gray-and-black-laptop-computer-929285/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>When it comes to travel, getting the maximum value out of foreign exchange rates probably isn’t at the top of your mind.</p><p>It’s probably about where you’ll go, what you’ll see, who you’ll meet, and how much your life will change.</p><p>Still, when it comes to travel, money is what will enable all your experiences so you have to be mindful of it. Losing 3% for every $1 you spend isn’t the most ideal way to spend money in another country.</p><p>This is why I did my research about my problems when it came to spending my hard-earned Canadian bucks in other countries and found some great services and fintech companies that mostly solve the slow burn of money every time I buy something not in CAD.</p><p>Here are three companies/services/apps you should be aware of as a Canadian spending money in another country.</p><h3>Stack credit card</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YthvnbbLEDcqYU3inteJEQ.png" /><figcaption>Image from <a href="https://www.getstack.ca/">getstack.ca</a></figcaption></figure><p>Stack is a pre-paid Mastercard credit card that you can load up through Interac e-transfers or direct deposits and spend like a credit card.</p><p>It allows you to spend your Canadian dollars with the best exchange rate possible.</p><p>If you’ve been using a typical Canadian credit card from your bank, chances are you’re being ripped off when you buy anything in another currency.</p><p>Stack uses the current market rate to convert your CAD to whatever currency you’re buying in so you always get the best value for your money. Banks typically give awful exchange rates and an extra 2–3% on top of that.</p><p>I’ve been using this <a href="https://www.xe.com/apps/">XE currency exchange app</a> to see what the conversion rate is for most of my spending and the price Stack gives me is always great and sometimes even better than the one I see on the currency exchange app.</p><p>I use the Stack app for most of my purchases when I’m not in Canada. Probably at least 70% of my purchases happen through my Stack card.</p><p>When I go to the grocery store, or pay for a gym membership, or order Uber eats, in another country, they’re all expenses that are in another currency.</p><p>If I need to use cash, then I’ll just go to an ATM and withdraw money. There are no fees for it, the only fee would be if the ATM itself requires fees.</p><p>It’s very simple to load up.</p><p>You just make an Interac e-transfer from your bank to the Stack card/app, and the money will be available within a few minutes.</p><p>There are loads of other features as well, including rounding up your spending so you get automated savings, splitting the bill with your friend if they have Stack, and free money transfers between Stack accounts.</p><p>The benefits of traditional credit cards won’t be applicable for Stack but they do have their rewards and there’s quite a few. Personally, those rewards aren’t that exciting for me and I’d rather rack up bonus points like on a traditional credit card, but more than that, I’d rather get the best forex rate for my CAD spending.</p><p>If you want to get a free $5 for signing up, you can use my <a href="https://getstackco.app.link/KruG0fePm6">link</a> here and I’ll get some bonus as well!</p><h3>Transferwise</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d1SX3EsHm_jHdXBZp6ljeg.png" /><figcaption>Image from <a href="https://transferwise.com/">transferwise.com</a></figcaption></figure><p>Transferwise is a bank app service that allows you to hold money in multiple currencies.</p><p>I have a USD bank account with Transferwise and send all my USD to it so that when I get paid in USD, it stays in USD.</p><p>By sending my hard-earned USD from Stripe or Upwork to Transferwise, I get to send USD to my Canadian bank account using Transferwise’s exchange rate and not the bank’s.</p><p>When Stripe, Upwork, or Paypal send USD to your bank account, they don’t convert it for you.</p><p>That’s why Transferwise is so great. They use the best exchange rate possible so you’re always getting the best value when working with USD.</p><p>There is a small fee but it’s so worth it.</p><p>If you want to try out Transferwise, try my referral <a href="https://transferwise.com/invite/u/albertk205">link</a>! You get one free transfer up to CAD 800 and I’ll get a bonus as well!</p><h3>Stripe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ySaANm1gyW_TAzbVTH0Kag.png" /><figcaption>Image from <a href="https://stripe.com/">stripe.com</a></figcaption></figure><p>I use Stripe for invoicing. I’m a freelancer so I have to create my own invoices.</p><p>Stripe allows me to create them in a very simple way. It allows my clients to pay me with their credit card and I can send the USD to my Transferwise USD account! Easy!</p><p>There’s not much to say here, Stripe is an awesome service and has a way better fee structure than something like Paypal or Upwork’s 20% cut.</p><p>If you haven’t already heard of Stripe, then check it out <a href="https://stripe.com/">here</a>! Invoicing is just a small part of all their offerings.</p><h3>Final thoughts</h3><p>The main issue with using CAD in other countries is getting the most value out of your exchange rate.</p><p>You don’t have to lose 2–3% for every $1 you spend due to poor financial services.</p><p>Use cutting edge fintech companies like Stack, Transferwise, and Stripe to at least get the market rate for your hard-earned bucks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f2154b2e2ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a Global Notification Component with React and Context! Part 2 (with code)]]></title>
            <link>https://medium.com/@albert.kim/create-a-global-notification-component-with-react-and-context-part-2-with-code-cc0a5794c51c?source=rss-79e778e4ef18------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc0a5794c51c</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-context]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Albert Kim]]></dc:creator>
            <pubDate>Tue, 07 May 2019 17:36:35 GMT</pubDate>
            <atom:updated>2019-05-07T17:38:00.020Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*AtduxwQs2JVGhBOMqLx24w.gif" /><figcaption>Create a Global Notification Component with React and Context! Part 1</figcaption></figure><p><em>For part 1 visit this link:</em></p><p><a href="https://medium.com/@yongelee/create-a-global-notification-component-with-react-and-context-part-1-with-code-461dd94e2b9e">Create a Global Notification Component with React and Context! Part 1 (with code)</a></p><p>In part 2 we will continue where we left off in this tutorial.</p><p>At the end of part 1 we had set up our project, added routing, bulma, and created all the components we will use.</p><p>In part 2 we will create the context our app will use and implement the functionality to make the notification work as intended!</p><h3>Step 3: Setting up the Context Provider</h3><p><a href="https://github.com/yongelee/Global_Notification_Example_React/tree/step-three">yongelee/Global_Notification_Example_React</a></p><p>Next up we will be adding the context provider into our app so that we can share state between components.</p><p>Why do we want to do this?</p><p>If we want to update the notification component from the main component then we might pass state from main to notification.</p><p>But what if we want to update the notification component from the profile component? Then we might pass state from profile to main to notification.</p><p>But what if we don’t want to do that? What if main and profile don’t need to interact with each other at all?</p><p>We solve this problem by providing a global state to all of the components and having Main, Profile and FlashMessage use this one source of data.</p><p>There are several different ways of creating global state/data in your React app. There’s Redux which is a famous library for handling the problem of sharing data between components. There’s MobX which does something similar in a different way.</p><p>Then there is the Context Provider which was a long awaited functionality of solving the global state problem. The benefit of using the Context Provider over something like Redux or MobX is that it comes with the core package of React so you don’t have to add any different packages if you don’t want to.</p><p>There are 3 parts of adding a context provider in your app.</p><p>1. Create the context and create the provider.</p><p>2. Wrap your components in the provider so they have access to the context’s state.</p><p>3. In the components that use this state, wrap them in a consumer to gain access.</p><h3>Create the Context and the Provider</h3><pre>export const GlobalContext = new React.createContext();</pre><p>That is how you create the context. What this does is create a variable called GlobalContext which is a Context type.</p><p>With the GlobalContext variable you are now able to call “.Provider” or “.Consumer” on the GlobalContext and wrap your components with it.</p><h4>How you use Provider and Consumer:</h4><p><em>How you expose the “provider state” to the children of the provider.</em></p><pre>&lt;GlobalContext.Provider <em>value</em>={this.state}&gt;</pre><pre>  {this.props.children}</pre><pre>&lt;/GlobalContext.Provider&gt;</pre><p><em>To access (aka consume) the context state.</em></p><pre>&lt;GlobalContext.Consumer&gt;</pre><pre>  {(props) =&gt; {</pre><pre>    console.log(props);</pre><pre>    return (</pre><pre>      &lt;div <em>className</em>=&quot;section&quot;&gt;</pre><pre>        &lt;p <em>className</em>=&quot;title&quot;&gt;Hello from main.js&lt;/p&gt;</pre><pre>        &lt;button <em>className</em>=&quot;button&quot;&gt;Show notification&lt;/button&gt;</pre><pre>        &lt;Link <em>className</em>=&quot;button&quot; <em>to</em>=&quot;/profile&quot;&gt;</pre><pre>          Profile</pre><pre>        &lt;/Link&gt;</pre><pre>      &lt;/div&gt;</pre><pre>    );</pre><pre>  }}</pre><pre>&lt;/GlobalContext.Consumer&gt;</pre><p><em>To enable “child components” of the context provider, aka wrap your app with the context provider so the components inside the provider have access to its state.</em></p><pre>&lt;GlobalProvider&gt;</pre><pre>  &lt;Router&gt;</pre><pre>    &lt;Route <em>path</em>=&quot;/&quot; <em>exact</em> <em>component</em>={Main} /&gt;</pre><pre>    &lt;Route <em>path</em>=&quot;/profile&quot; <em>component</em>={Profile} /&gt;</pre><pre>    &lt;FlashMessage <em>show</em>={true} /&gt;</pre><pre>  &lt;/Router&gt;</pre><pre>&lt;/GlobalProvider&gt;</pre><p><a href="https://github.com/yongelee/Global_Notification_Example_React/blob/step-three/src/GlobalContext.js">yongelee/Global_Notification_Example_React</a></p><p>In the file GlobalContext.js you will see a React class with state and methods and a render method. This is what Context is, it’s just another React class that allows other components to use its state.</p><p>There is the state, which just holds data about the state of the notification (show, message, status), and a method which updates the state.</p><p>In the method setMessage, after the state gets updated, you’ll see that there is a setTimeout method call.</p><p>What setTimeout does is sets a time to wait once it’s called. After that time is up, then the code inside the setTimeout callback runs. In this case, after 3000 ms, call this.setState to set the showFlash to false.</p><p>Why do we need this line of code? Because if this isn’t there, then we manually have to set the showFlash to false every time we show the notification. Since this notification is just to notify the user briefly, we can add this setTimeout line to always close the flash message after 3 seconds every time it’s called.</p><p>Then we call render() which just returns the context provider with the class’s state as the value, and it accepts children which are components that get wrapped within it.</p><h4>Wrap your components in the provider so they have access to the context’s state.</h4><p>To expose this context provider you just created, you have to add it to your project.</p><p>For this project configuration, the main entry point to this React app is the App.js component. This is what the ReactDOM.render() method calls to render an app.</p><p>So if we wrap this App component in the context provider we just created, then that makes App a child of the context provider. Remember the line:</p><pre>&lt;GlobalContext.Provider <em>value</em>={this.state}&gt;</pre><pre>  {this.props.children}</pre><pre>&lt;/GlobalContext.Provider&gt;</pre><p>If we wrap App in this provider, then that would be the same as replacing {this.props.children} with &lt;App /&gt;.</p><p>This exposes the provider state to App and everything in App, like the routes and Main/Profile/FlashMessage components.</p><p>So to wrap the App, in your App.js file, import the Context Provider and change the render function to:</p><pre>return (</pre><pre>  &lt;GlobalProvider&gt;</pre><pre>    &lt;Router&gt;</pre><pre>      &lt;Route <em>path</em>=&quot;/&quot; <em>exact</em> <em>component</em>={Main} /&gt;</pre><pre>      &lt;Route <em>path</em>=&quot;/profile&quot; <em>component</em>={Profile} /&gt;</pre><pre>      &lt;FlashMessage <em>show</em>={true} /&gt;</pre><pre>    &lt;/Router&gt;</pre><pre>  &lt;/GlobalProvider&gt;</pre><pre>);</pre><p>Now Main/Profile/FlashMessage have access to the GlobalProvider state that they share.</p><h4>In the components that use this state, wrap them in a consumer to gain access.</h4><p>So we’ve created a global React class that we can use, we’ve made it accessible to the components we want, now it’s time to see the data.</p><p>For now let’s just console.log some data.</p><p>To use or consume the data from the context provider in your components like Main, you wrap your components in a Consumer wrapper.</p><pre>return (</pre><pre>  &lt;GlobalContext.Consumer&gt;</pre><pre>    {(props) =&gt; {</pre><pre>      console.log(props);</pre><pre>      return (</pre><pre>        &lt;div <em>className</em>=&quot;section&quot;&gt;</pre><pre>          &lt;p <em>className</em>=&quot;title&quot;&gt;Hello from main.js&lt;/p&gt;</pre><pre>          &lt;button <em>className</em>=&quot;button&quot;&gt;Show notification&lt;/button&gt;</pre><pre>          &lt;Link <em>className</em>=&quot;button&quot; <em>to</em>=&quot;/profile&quot;&gt;</pre><pre>            Profile</pre><pre>          &lt;/Link&gt;</pre><pre>        &lt;/div&gt;</pre><pre>      );</pre><pre>    }}</pre><pre>  &lt;/GlobalContext.Consumer&gt;</pre><pre>);</pre><p>What this does is return a render prop:</p><p><a href="https://reactjs.org/docs/render-props.html">Render Props - React</a></p><p>Which exposes the state from the global context as a prop.</p><p>If you look at the results from the console.log, you’ll see the state we created in the Context Provider.</p><h4>Recap</h4><ul><li>Created the context provider which is just a React class with some specific Context properties.</li><li>Wrapped the App component in the Context Provider</li><li>Wrapped the other components in a Context Consumer and console.logged the props.</li></ul><h3><strong><em>Step 4: Adding the functionality to the components</em></strong></h3><p><a href="https://github.com/yongelee/Global_Notification_Example_React/tree/step-four">yongelee/Global_Notification_Example_React</a></p><p>Alright now we have our global context that we can use to update the FlashMessage component.</p><p>What do we want to do with this notification? We want to display it if the showFlash prop is true, and we want to display the message and its status.</p><p>If showFlash is false, we return null so that the notification html doesn’t get shown.</p><p>So the FlashMessage component will look like:</p><pre>&lt;GlobalContext.Consumer&gt;</pre><pre>  {(props) =&gt; {</pre><pre>    if (props.showFlash) {</pre><pre>      return (</pre><pre>        &lt;div</pre><pre><em>          style</em>={{</pre><pre>            position: &quot;absolute&quot;,</pre><pre>            zIndex: 500,</pre><pre>            left: &quot;50%&quot;,</pre><pre>            top: &quot;50%&quot;,</pre><pre>            transform: &quot;translate(-50%, -50%)&quot;,</pre><pre>            boxShadow: &quot;4px 4px 10px -4px rgba(0,0,0,0.58)&quot;</pre><pre>          }}</pre><pre>       &gt;</pre><pre>        &lt;div</pre><pre><em>          className</em>={`notification ${</pre><pre>          props.status === &quot;success&quot; ? &quot;is-success&quot; : &quot;is-danger&quot;</pre><pre>          }`}</pre><pre>        &gt;</pre><pre>          &lt;p&gt;{props.message}&lt;/p&gt;</pre><pre>        &lt;/div&gt;</pre><pre>      &lt;/div&gt;</pre><pre>    );</pre><pre>    } else {</pre><pre>      return null;</pre><pre>    }</pre><pre>  }}</pre><pre>&lt;/GlobalContext.Consumer&gt;</pre><p>What’s happening in this component should be pretty straight forward.</p><pre><em>className</em>={`notification ${</pre><pre>  props.status === &quot;success&quot; ? &quot;is-success&quot; : &quot;is-danger&quot;</pre><pre>}`}</pre><p>This line of code might be confusing. What this is doing is dynamically adding Bulma classes based on the status prop.</p><p>If prop.status is “success” then add the class “is-success”, else add the class “is-danger”</p><p>Is-success and is-danger are css classes from Bulma that change the color of the notification from green (success) to red (danger).</p><p>That’s what that line of code does. We can dynamically add css classes using the template strings and the ternary operator .</p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals">Template literals (Template strings) - JavaScript | MDN</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator">Conditional (ternary) operator - JavaScript | MDN</a></li></ul><p>Now we want to have our Main and Profile component to be able to use the ShowFlash component when they need to, in our case, when the button gets clicked. Another standard use case would be to show a notification after some async action happens like deleting an item or sending a friend request.</p><p>All we have to do is add an onClick handler to the buttons.</p><pre>&lt;button</pre><pre><em>  className</em>=&quot;button&quot;</pre><pre><em>  onClick</em>={() =&gt; {</pre><pre>    props.setMessage(&quot;You are on main&quot;, &quot;success&quot;);</pre><pre>  }}</pre><pre>&gt;</pre><p>We have access to the setMessage method from the props, and we just have to call it with the message and the status.</p><p>That’s it.</p><p>No need to import the FlashMessage component in the Main or Profile component, just update the global state that FlashMessage is tied to.</p><p>Since we added a setTimeout to the setMessage method, we don’t have to worry about making the notification disappear, it will handle that after 3 seconds.</p><p>One last thing, you might notice that if you press the button really quickly, then you might experience some unnatural UX. This is because the setTimeout only runs every 3 seconds, not resetting every time you press the button.</p><p>To fix this we just need to add a check to see if showFlash is false, then update the state.</p><pre>if (!this.state.showFlash) {</pre><pre>  this.setState({</pre><pre>    ...this.state,</pre><pre>    showFlash: true,</pre><pre>    message,</pre><pre>    status</pre><pre>  });</pre><pre><em>  // After 3 seconds change the state to</em></pre><pre><em>  // not show the notification</em></pre><pre>  setTimeout(() =&gt; {</pre><pre>    this.setState({</pre><pre>      ...this.state,</pre><pre>      showFlash: false</pre><pre>    });</pre><pre>  }, 3000); <em>// 3000 milliseconds = 3 seconds</em></pre><pre>}</pre><h4>Recap</h4><ul><li>Changed the rendering in FlashMessage based on the props</li><li>Added an onClick handler that calls setMessage on the Main and Profile component</li><li>Added a check in the setMessage method</li></ul><h3>Next Steps</h3><p>Next steps to take is to implement this UX with your own code. Try adding it into an existing project or create a new one. Try implementing this in Redux or MobX or Apollo State or another state management library.</p><p>If you liked this please consider following me on Twitter, I plan on creating more content and will always post about my new posts on Twitter.</p><p><a href="https://twitter.com/yongelee_">Yongelee (@yongelee_) | Twitter</a></p><h4>Part 1:</h4><p><a href="https://medium.com/@yongelee/create-a-global-notification-component-with-react-and-context-part-1-with-code-461dd94e2b9e">Create a Global Notification Component with React and Context! Part 1 (with code)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc0a5794c51c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a Global Notification Component with React and Context! Part 1 (with code)]]></title>
            <link>https://medium.com/@albert.kim/create-a-global-notification-component-with-react-and-context-part-1-with-code-461dd94e2b9e?source=rss-79e778e4ef18------2</link>
            <guid isPermaLink="false">https://medium.com/p/461dd94e2b9e</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[react-context]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Albert Kim]]></dc:creator>
            <pubDate>Tue, 07 May 2019 17:36:19 GMT</pubDate>
            <atom:updated>2019-05-07T17:37:25.840Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*AtduxwQs2JVGhBOMqLx24w.gif" /><figcaption>The functionality you will learn how to implement in this tutorial.</figcaption></figure><p><em>Part 2 here:</em></p><p><a href="https://medium.com/@yongelee/create-a-global-notification-component-with-react-and-context-part-2-with-code-cc0a5794c51c">Create a Global Notification Component with React and Context! Part 2 (with code)</a></p><p>Are you looking to take your UI/UX development skills to the next level?</p><p>Do you want to learn how to use the React Context in a realistic scenario?</p><p>Or do you want to learn how to create this epic UI/UX interaction?</p><p>Having a component in your app dedicated to displaying messages to your user is a great way to improve the UX for the user.</p><p>If your user is performing an action, it can be unclear whether or not that action was successful, for example, creating a user account, or deleting an item. It can be useful to have something as simple as flashing a message in the middle of the screen to update your user about what happened.</p><p>In this article you will learn how to implement this kind of functionality using only React and Context.</p><h4>Table of contents:</h4><h4><em>This post:</em></h4><p><strong><em>Step 1: Project set up</em></strong></p><p><a href="https://github.com/yongelee/Global_Notification_Example_React">yongelee/Global_Notification_Example_React</a></p><ul><li>Create react app</li><li>React router dom</li><li>Bulma</li></ul><p><strong><em>Step 2: Create the notification component</em></strong></p><p><a href="https://github.com/yongelee/Global_Notification_Example_React/tree/step-two">yongelee/Global_Notification_Example_React</a></p><ul><li>Getting the component rendered on the screen</li><li>Where to place this component in your app hierarchy</li><li>The CSS properties needed</li></ul><h4><em>Next post:</em></h4><p><strong><em>Step 3: Setting up the Context Provider</em></strong></p><p><a href="https://github.com/yongelee/Global_Notification_Example_React/tree/step-three">yongelee/Global_Notification_Example_React</a></p><ul><li>Create context</li><li>Create provider</li><li>Add context provider to the project</li></ul><p><strong><em>Step 4: Adding the functionality to the components</em></strong></p><p><a href="https://github.com/yongelee/Global_Notification_Example_React/tree/step-four">yongelee/Global_Notification_Example_React</a></p><ul><li>Updating the context state</li></ul><h3>Step 1: Project set up</h3><p>Link to the repo for step 1:</p><p><a href="https://github.com/yongelee/Global_Notification_Example_React">yongelee/Global_Notification_Example_React</a></p><p>To start we are going to be using the create react app project as the base for our React app. You can create a new react project by typing:</p><pre>npx create-react-app your-project-name</pre><p>The repo for create react app is here :</p><p><a href="https://github.com/facebook/create-react-app">GitHub - facebook/create-react-app: Set up a modern web app by running one command.</a></p><p>When you type “npx create-react-app <em>your-project-name</em>” on your command line what that will do is create a new folder, inside of your current folder, and make a new project called <em>your-project-name</em>.</p><p>If you are already in the folder you want to have your react app in, then you can type the command:</p><pre>npx create-react-app .</pre><p>What the “.” Does is indicate that you want to create the react app inside the current folder which you are typing the command.</p><p>Once the create react app is finished initializing, you should have a standard create react project that you can run with</p><pre>npm start</pre><p>Or</p><pre>yarn start</pre><h4>Delete some files</h4><p>You don’t need all the files that the project comes with. You can delete App.css, App.test.js index.css, and logo.svg</p><p>Update the files that were importing the files you just deleted.</p><p>At this point your project should look like the master branch in this repo:</p><p><a href="https://github.com/yongelee/Global_Notification_Example_React">yongelee/Global_Notification_Example_React</a></p><p>I only have App.js, and index.js and in App.js I just have a paragraph tag with “Hello world” in it.</p><h4>Adding react router dom and Bulma</h4><p>In this project we are going to have 2 pages, the index page (with a component called Main.js) and a profile page (with a component called Profile.js).</p><p>To get things going, let’s get a hello world printed on 2 new components we will make called Main.js and Profile.js.</p><p>But first since we need to handle routing in this project let’s add a new dependency called “react-router-dom” to handle the routing. And while we’re adding new dependencies let’s also add “Bulma” which is a light weight css framework that I am a fan of.</p><p>Run the command</p><pre>yarn add react-router-dom bulma</pre><p>Or the npm equivalent.</p><ul><li><a href="https://bulma.io/">Bulma: Free, open source, and modern CSS framework based on Flexbox</a></li><li><a href="https://reacttraining.com/react-router/web/guides/quick-start">React Router: Declarative Routing for React</a></li></ul><p>Now let’s add these new dependencies in our project.</p><p>If you add a css module like bulma or bootstrap or materialize to your project, how you import it is just by adding the files you want to a top level component in your react app.</p><p>If you open the node_modules folder and find bulma, you’ll see that it’s like any other node project with a package.json and other files.</p><p>But we only care about the css file that it comes with.</p><p>There is a css folder and in that we want the “bulma.min.css” file.</p><p>Importing this css file is very simple, you just type:</p><pre>import &quot;bulma/css/bulma.min.css&quot;;</pre><p>So in your App.js file (the highest level component which will serve as the main entry point for all the other components) add that line and all of the components contained in App.js will be able to use bulma classes.</p><p>Now let’s add routing.</p><p>For the react-router-dom package we will only be using 2 components to add routing to the App.js file.</p><p>Add the line:</p><pre>import { BrowserRouter as Router, Route } from &quot;react-router-dom&quot;;</pre><p>To your App.js file.</p><p>App.js will now serve as the place where the routes will lie. To do this we want to have the top level component that gets returned from App.js to be the Router component, and in that we will add the routes.</p><p>App.js should now look like this:</p><pre>&lt;Router&gt;</pre><pre>  &lt;Route path=&quot;/&quot; exact component={Main} /&gt;</pre><pre>  &lt;Route path=&quot;/profile&quot; component={Profile} /&gt;</pre><pre>&lt;/Router&gt;</pre><p>What the Route component is doing is telling the React app how to render pages. Since users expect websites to work based on what url they’re visiting, it makes sense to structure your React app in that way.</p><p>When users visit the “/” route which is the entry point to your website, show the Main component. The exact prop is added because if you don’t add that, then “/profile” also counts as “/” because “/profile” contains “/”. We only want to show the Main component when users are only on “/” which is why the exact keyword is added.</p><p>When they go to the /profile route, then show the Profile component.</p><p>Now let’s create those components:</p><p>In the src folder create 2 new components, Main.js and Profile.js</p><p>Make these functional components which just print “Hello world”</p><p>Import these new components into your App.js file and this should make your app run.</p><p>Now let’s add very minimal styling to this project so that it doesn’t look amateur.</p><p>Since we are using Bulma we only need to add the class names we want on what elements.</p><p>We also want to add buttons, one to show the notification, and one to switch pages.</p><p>So the html layout of Main.js and Profile.js would look something like a div containing a text element and two buttons.</p><p>Since the div is a section within this web app, let’s add the section class from bulma to this element.</p><p>Since the text element is a title, let’s add the title class from bulma to that element.</p><p>Since the button is a button and we want it to look decent with minimal effort let’s add the button class to the button.</p><p>We also want to be able to switch to the other page inside each component so we need the Link component from react-router-dom which will add navigation ability to our components.</p><p>Link is imported like:</p><pre>import { Link } from “react-router-dom”;</pre><p>Now your main/profile component should look something like this:</p><pre>&lt;div className=&quot;section&quot;&gt;</pre><pre>  &lt;p className=&quot;title&quot;&gt;Hello from main.js&lt;/p&gt;</pre><pre>  &lt;button className=&quot;button&quot;&gt;Show notification&lt;/button&gt;</pre><pre>  &lt;Link className=&quot;button&quot; to=&quot;/profile&quot;&gt;</pre><pre>    Profile</pre><pre>  &lt;/Link&gt;</pre><pre>&lt;/div&gt;</pre><p>Now your code should be similar to the step-one branch in this repo</p><p><a href="https://github.com/yongelee/Global_Notification_Example_React/tree/step-one">yongelee/Global_Notification_Example_React</a></p><p>It should also look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*wgHOdPffjOzexsRV6fLbLg.png" /><figcaption>The app at the end of step 1</figcaption></figure><h4>Recap</h4><ul><li>Created react app</li><li>Deleted extra files</li><li>Added react-router-dom and bulma and added it to the project</li><li>Created routes</li><li>Added some bulma styling to the components</li></ul><h3>Step 2: Create the notification component</h3><p><a href="https://github.com/yongelee/Global_Notification_Example_React/tree/step-two">yongelee/Global_Notification_Example_React</a></p><p>Next we will create the component that is the notification. This will be a functional component that has special css properties which allow it to act like a global message that is displayed in front of anything happening in your app.</p><p>Those css properties are: position and z-index. The position property allows an html element to be “positioned” in different ways. The position we want our notification component to be is “fixed.”</p><p><em>(In the repo the position is “absolute” but that should be “fixed”)</em></p><p>A fixed positioned element is positioned on the page relative to the viewport, and not its parent element.</p><p>That means a div with a position of fixed is not within the normal hierarchy of elements, it’s “outside” of it and positioned based on the screen.</p><p>We need the component to have this property because we want the notification to appear in the middle of the screen, no matter what component activates it and show it in front of everything.</p><p>The z index property allows the element to appear on top of those with a lower z index. If html elements are stacked like pieces of paper, then you see the top level paper and every other piece of paper under it is invisible unless it’s outside of the width and height of the higher level piece of paper.</p><p>The higher the z index value, the higher in the stack the element will be.</p><p>We will also add a notification class to an inner div in that component which is a class from Bulma. It styles the div in a way that makes it look like a notification. We will also be adding modifiers later to change the color depending on the status of the notification.</p><p>For now the component should look like this:</p><pre>const FlashMessage = (props) =&gt; {</pre><pre>  if (props.show) {</pre><pre>    return (</pre><pre>      &lt;div</pre><pre><em>        style</em>={{</pre><pre>          position: &quot;absolute&quot;,</pre><pre>          zIndex: 500,</pre><pre>          left: &quot;50%&quot;,</pre><pre>          top: &quot;50%&quot;,</pre><pre>          transform: &quot;translate(-50%, -50%)&quot;,</pre><pre>          boxShadow: &quot;4px 4px 10px -4px rgba(0,0,0,0.58)&quot;</pre><pre>        }}</pre><pre>    &gt;</pre><pre>      &lt;div <em>className</em>={`notification`}&gt;</pre><pre>        &lt;p&gt;flash message&lt;/p&gt;</pre><pre>      &lt;/div&gt;</pre><pre>    &lt;/div&gt;</pre><pre>  );</pre><pre>  } else {</pre><pre>    return null;</pre><pre>  }</pre><pre>};</pre><p>The basic idea of this component is that it will take in some props and if the show prop is true, we will return the html, if it is not true then we will return null.</p><p>We need this because if we are always returning html then the notification component will always show. We don’t want this notification to always show, only show when it is relevant, and otherwise return null.</p><p>Where do we place this app in the project?</p><p>We don’t want it nested in a component like Main or Profile because every page needs to be able to render this component.</p><p>So we put it in the App.js file alongside the routes.</p><pre>&lt;Router&gt;   <br>  &lt;Route path=&quot;/&quot; exact component={Main} /&gt; <br>  &lt;Route path=&quot;/profile&quot; component={Profile} /&gt;    <br>  &lt;FlashMessage show={true} /&gt;  <br>&lt;/Router&gt;</pre><p>Since FlashMessage is in the same position as the routes, it will be displayed no matter what page is rendered because it’s in the same hierarchy as the routes.</p><h3>For the next steps visit this post:</h3><p><a href="https://medium.com/@yongelee/create-a-global-notification-component-with-react-and-context-part-2-with-code-cc0a5794c51c">Create a Global Notification Component with React and Context! Part 2 (with code)</a></p><h3>More about the author</h3><p>If you liked what you read, please consider following me on Twitter!</p><p><a href="https://twitter.com/yongelee_">Yongelee (@yongelee_) | Twitter</a></p><p>I plan on writing more often and I will definitely tweet about it when I do.</p><p>I also have other stories on my Medium profile page for you to check out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=461dd94e2b9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding User Authentication in your Web App and how to implement it Part 1 (the high level…]]></title>
            <link>https://medium.com/@albert.kim/understanding-user-authentication-in-your-web-app-and-how-to-implement-it-part-1-the-high-level-ab91336ab77c?source=rss-79e778e4ef18------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab91336ab77c</guid>
            <category><![CDATA[user-authentication]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Albert Kim]]></dc:creator>
            <pubDate>Fri, 26 Apr 2019 15:00:14 GMT</pubDate>
            <atom:updated>2019-04-26T15:09:41.410Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding User Authentication in your Web App and how to implement it Part 1 (the high level overview).</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*COE6Yz73Oti2UEM30Tev3Q.png" /><figcaption>Do not use this for your user authentication!</figcaption></figure><p><em>Stay tuned for part 2 where I walk through the steps to create a working full-stack web app with user authentication in React and Node…</em></p><p>What does it mean to have your web app be authenticated with a user’s credentials?</p><p>You could fake it with some JavaScript.</p><p>Just set up a prompt that accepts a user name and password, and no matter what, allow that user to go past the login screen.</p><p>That would technically count as implementing a UX flow for user authentication but you’d have to be a psycho to try and pass that off as real security.</p><p>For the more empathetic, implementing a proper and secure authentication system is a heavy task with real responsibility. If your web app does not have a secure authentication system you are potentially exposing your users to identity theft or fraud.</p><p>So how do you create an authentication system you can trust?</p><p>In this article I will attempt to explain what it means to have a secure authentication system in your web app and a high level overview of how to implement this system.</p><p>For this user authentication system, I will assume a few things.</p><p>- You’re creating a web app with a front end client (a browser like Chrome or Firefox).</p><p>- You have a separate server API that your client is interacting with.</p><p>- You want to use a user’s email and password to authenticate that user.</p><p>We will also be using cookies as the form of persistence for the login system.</p><p>Why a cookie? I could go into detail but that is not the important part of this post. If you really want to learn about cookies VS JWT you can watch this video <a href="https://www.youtube.com/watch?v=o9hT7v0OLJc">https://www.youtube.com/watch?v=o9hT7v0OLJc</a></p><h3>Why do you want to create a user authenticated application?</h3><p>Think about the programs/applications you use most often. For me, it’s Youtube, email, social media, Reddit, and computer games (also programming related apps of course!). All of these applications are user authenticated and contains features specific to me.</p><p>Another reason for creating a user authenticated web app is to take your skills to the next level. I would create a lot of apps where anyone with a link could visit and view. I didn’t think anyone would use these applications so I stopped making them and focused on learning how to create user authenticated app.</p><p>Creating these types of apps is harder than creating an app that anyone can view and load up. Fortunately, after reading this post, you should have an understanding of the pieces required to implement a user authenticated system yourself.</p><h3>The pieces involved in creating a user authenticated system</h3><h4>Cookies &amp; Sessions</h4><p>A cookie is a piece of data that is stored on each individual browser (the browser you’re using) that sends that data to the server that the web app is communicating with, on each request.</p><p>A session is a collection of data stored on a server (that is the back-end of the web app) that is associated with a user, usually via a cookie containing an id like the user’s id.</p><p>A cookie and session in action:</p><ul><li>You go to <a href="http://www.webapp.com/">www.webapp.com</a> for the first time (you have an account somehow). At this point you don’t have a cookie set on your browser.</li><li>You login with your secure credentials.</li><li>The server (webapp.com’s backend) receives this login request, and accepts it.</li><li>The server then sets a session on your browser’s request containing your account’s user id.</li><li>The server then sends a cookie to your browser.</li><li>Whenever you go to webapp.com at this point on, your browser sends that cookie to the server. The server uses that cookie (which is the session on the server) and uses the user id set on the session to find your user account in the database.</li><li>The server finds a user, and returns your account information.</li></ul><h4>Database</h4><p>If you’re reading this you should already know what a database is.</p><p>The role of a database in a user authentication system is used to store data about the user, such as their name, email, (hashed) password, and any other account settings like profile pictures or comments.</p><p>You check against the database to see if a user exists. This user entity is what your application uses to send data to the browser.</p><h4>Server</h4><p>The server is what receives all of the front-end’s requests and sends the browser data. This is an API of some sort, it could be RESTful or GraphQL or something else.</p><p>Basically, it is an application that (probably) lives in the cloud, and anyone visiting the front-end part of it (what you see when you visit <a href="http://www.webapp.com/">www.webapp.com</a>), can interface with this server through the front-end.</p><p>The front-end sends requests to the server and the server sends responses which contains data that the front-end uses.</p><h4>Client</h4><p>The client AKA the browser AKA the front-end.</p><p>This is the user-facing web app. This is what you see when you visit <a href="http://www.webapp.com/">www.webapp.com</a>. It could be a React.js app, it could be an Angular app, it could be a PHP app, it could be plain HTML/CSS/Javascript.</p><p>This is where you log in with a form or register with a form. The client then sends that form data to the server where the server checks the database to see if you should see sensitive data.</p><p>You interface with the server through the front-end.</p><p>For example, if you press a button that deletes an item in your inventory, the client sends that delete item request to the server, the server then receives that request and does the deletion action.</p><h3>Registration and Login high-level overview</h3><p>Now we are getting into the implementation details of user authentication.</p><p>The two essential functionalities of implementing user authentication are registering a user and then logging that user in.</p><h3>Registration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*5JKBVkHI6tNoQai4zZRkmA.png" /><figcaption>A high-level overview of client and server interaction in registering a user.</figcaption></figure><p>There are a few different ways to implement registration. You can use an OAuth service with <a href="http://www.passportjs.org/">Passport.js</a> with Facebook and Google accounts.</p><p>The one I am going to talk about is with email registration. This is where a user submits an email to create an account.</p><p>Here are the high-level steps to take to implement registration with email.</p><h4>Step 1</h4><p>Users send their email address and their password through a form to a registration request from the web app to the server. The code might look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tU85V-iYdmT4l1L8T5mx1w.png" /><figcaption>Pseudo-code for registration with a form.</figcaption></figure><p>Why do you have to do this? Well if you are going to create a user object in your database that contains specific information about that user, then you need to identify them somehow. You do this with email. The user knows their email, so when they want to login, they enter their email, then you check if their email exists in the database.</p><p>You get the email and password from your front-end form, send that data through a request to the server, which then…</p><h4>Steps 2/3</h4><p>The server receives a request from your front-end (not just any front-end! #cors) that is a registration specific request and it contains the email and password.</p><p>The server then:</p><ul><li>Validates the input</li><li>Checks the database to see if that user’s email exists in the database.</li><li>If it doesn’t then the server prepares to save that user by:</li><li>Hashing the password, saving the user, and then returning a response.</li></ul><p>The code might look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HgCqy4p6tcUhLluH6QXgdw.png" /><figcaption>Server registration pseudo-code.</figcaption></figure><h4>Step 4</h4><p>At this point, your user has sent a request from your website’s frontend to your website’s backend with a registration request containing their email and password.</p><p>If the registration is valid, then the server returns a response (the response could be a boolean, it could be an object, it could be null, it could be a string, it’s up to you). With this response, you should update your UI telling the user what happened.</p><p>Some developers also log their user in after the registration is successful.</p><p>Some developers will add an extra step of security for user accounts such as sending an email to the registered email to confirm they are the owner of the email.</p><p>You can research more about those steps on your own time. For now let’s move on to the login implementation.</p><h3>Login</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*NhD4-zexu0TFbxGm8BR5ng.png" /><figcaption>A high-level overview of logging a user in from the client to the server.</figcaption></figure><p>After your user registers and their user settings are saved in your database, they’ll be able to login to your web app to see their personal information.</p><p>This information could be the timeline of their friends posts if the app is Facebook. It could be a timeline of their followings’ tweets if the app is Twitter. It could be a feed of their followings’ pictures if the app’s Instagram.</p><p>If the user is not logged in and they visit your web app, they might see the default view for example with YouTube. If you’re not logged into YouTube and you visit their website, you’ll see the default videos that YouTube shows. If you are logged in then you’ll see a personalized home page of your subscriptions and recommendations.</p><h4>Step 1</h4><p>Your user is now on your website wanting to login. They enter their email and password in a login form that you prepared. It might look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WMdowWZIGUSaFAoJip5T8g.png" /><figcaption>Pseudo code for front-end login.</figcaption></figure><h4>Steps 2/3</h4><p>Once the user submits the login request from your front-end to your back-end, the login function is called on the back-end.</p><p>This function:</p><ul><li>Validates the input</li><li>Checks the database to see if a user with that email exists</li><li>Then compares the password inputted and the password saved, and then sets a session with an identifier.</li></ul><p>The code might look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GSPbK7KInBPDVSOADb5ODw.png" /><figcaption>Pseudo-code for server login.</figcaption></figure><p>The line “ctx.req.session.userId = user.id” is the most important part of the login process.</p><p>Without this, the server won’t know which user is “logged in”.</p><p>When you make the call “ctx.req.session.userId = user.id”, what you are doing is creating a variable in your server that you can call to make dynamic calls to your database.</p><p>For example, to find a list of a logged in user’s friends, here is how you would use this session variable:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*40Ss3_CFdGw2PqVcyhV6rQ.png" /><figcaption>An example of using sessions.</figcaption></figure><p>You first check if the session is set.</p><p>If the session is set, then you find the logged in user by accessing their userId from when you made the “ctx.req.session.userId = user.id” call from the login function.</p><p>The server knows the current user id because when you set the user id on the session, the server sends a cookie to the browser containing that information.</p><p>When the user uses the same browser to visit your website, the browser automatically sends the cookie (set by the server) from the browser to the server on every request.</p><p>The server then takes that cookie, and matches it with the session set on the server, and then is able to retrieve the user id because the browser (with the cookie) sent that information to the server.</p><p><strong>Without a cookie:</strong></p><p>The browser makes a request to the server (no cookie set) -&gt; Server gets that request and since there is no cookie sent with that request, there is no session to retrieve on the server and so there is no user id to look up in the database.</p><p><strong>With a cookie:</strong></p><p>The browser makes a request to the server (with a cookie) -&gt; Server gets that request with the cookie containing the user id data, so the server is able to see the session with the user id set. The server is able to then look up that current user in the database by using the user id.</p><h4>How do you set up the session on your server?</h4><p>This part depends on your server. In my case, I use Node.js and Express.js to set up my servers. With these tools, setting up your app to use sessions might look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B8N4D8C1DlI0a8zv4nZqbw.png" /><figcaption>Session middleware for an Express app.</figcaption></figure><p>Basically, the server uses a session middleware which stores the session data using Redis (I won’t get into that here, but Redis is kind of like a light-weight performance based database. It’s used to store and retrieve values, like a database).</p><p>With this set up in your server initialization, you now have access to a session object in your server that is attached to the “request” variable. You access this session by using code like “ctx.req.session.userId”.</p><p>You are able to access the session like that because you added the session to your server in the middleware in your server config (the app.use(session()) part). If you don’t have that middleware config, then you aren’t able to access the session in your server code.</p><p><em>Stay tuned for part 2 where I will go over the steps to implement a working full stack web app with user authentication…</em></p><h3>What’s next?</h3><p>It’s time for you to try and implement a cookie/session based login system yourself! Practice and implementing things your own way is the best way to learn in my opinion.</p><p>You can read articles and do tutorials all day but when you actually build a custom system from scratch, that’s when your understanding goes to the next level.</p><h4>Resources to take your skills to the next level</h4><p>If you want to go through a course to have someone guide you through implementing a full stack web app with user authentication, here are some links to courses I recommend.</p><p>Ben Awad has great courses for free on YouTube and coding along with his videos is how I learned advanced full-stack web dev. Here is his channel: <a href="https://www.youtube.com/user/99baddawg/playlists">https://www.youtube.com/user/99baddawg/playlists</a></p><p>Another great instructor is Wes Bos. <a href="https://wesbos.com/">https://wesbos.com/</a></p><p>His courses cost money but they’re affordable and well worth it for the knowledge and project you end up with.</p><p>You can also read more about my favorite course instructors that helped me take my skills to the next level. I wrote a post about this very subject.</p><p><a href="https://medium.com/@yongelee/my-favourite-course-instructors-for-web-development-760de4e10e31">My favourite course instructors for web development</a></p><p>If you liked this post then feel free to show me love on Twitter!</p><p><a href="https://twitter.com/yongelee_">Yongelee (@yongelee_) | Twitter</a></p><p>I’m also a freelance web developer. Feel free to send me an email if you want to work together!</p><p>You can find my email on my website:</p><p><a href="https://yongelee.com/">Intro</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab91336ab77c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My favourite course instructors for web development]]></title>
            <link>https://medium.com/@albert.kim/my-favourite-course-instructors-for-web-development-760de4e10e31?source=rss-79e778e4ef18------2</link>
            <guid isPermaLink="false">https://medium.com/p/760de4e10e31</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Albert Kim]]></dc:creator>
            <pubDate>Mon, 26 Nov 2018 02:39:07 GMT</pubDate>
            <atom:updated>2018-11-26T02:39:07.785Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been coding since 2012 and have been self-educating in modern JavaScript web development since 2015. Over the years I have taken many good courses and tutorials, and many meh courses and tutorials.</p><p>There are 3 course instructors who in my opinion deliver the best education for learning modern web development. Here is my review of them and why they’re so great. There are links to their courses but they’re not affiliate links. Yes, this is an endorsement of their courses.</p><h3>3. Stephen Grider</h3><p><a href="https://www.udemy.com/user/sgslo/">https://www.udemy.com/user/sgslo/</a></p><p>When Redux was the hot topic to learn and everyone ‘had’ to learn it, Stephen Grider’s courses on Udemy is how I learned Redux.</p><p>Redux was notorious for being complicated and difficult to learn. I wouldn’t have been able to get past the initial phase of ‘what the hell is this’ without Stephen Grider’s courses.</p><p>The best way for a beginner to learn in my opinion is to build everything from scratch. From npm init, to writing the lines of code, to seeing the code work on your screen, and having to make everything happen yourself.</p><p>That’s how Stephen Grider teaches his courses, everything is from scratch. There is no boilerplate that you install that you don’t understand how it works, he works with you to build everything from npm init to the final line of code.</p><p>WebPack and Redux are notorious for being difficult to understand. I’d struggle every time I’d start a new React project and have to implement a webpack config and Redux boilerplate to get something going.</p><p>I wouldn’t have even gotten to the point of struggling if not for Stephen Grider’s courses. He walks you through every line of code to create a working web app built with React, Redux and Webpack. He does a great job at explaining the concepts you’re working with and the reasons behind the lines of code you write.</p><p>He also provides great diagrams that help you visualize complex concepts. You then take those concepts and turn them into code.</p><p>I took his courses a few years ago back when what he taught was more relevant. I’m not sure what he teaches now but he’s a great teacher with a great teaching process so whatever he’s teaching you’ll learn and become confident in.</p><h3>2. Wes Bos</h3><p><a href="https://wesbos.com/">https://wesbos.com/</a></p><p>Wes Bos is a fellow Canadian web developer who teaches modern Javascript courses with technologies like React, Node, Graphql and CSS grid. Everything he does is cutting edge in the web development world.</p><p>He has great free and paid courses so if you don’t want to spend $100 on a course you can take several of his free courses which are probably 80% as great as his paid courses.</p><p>For example, his javascript30 course was amazing and improved my skills as a javascript coder by a lot. Before I took that course I didn’t know anything about <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction">DOM manipulation</a> and now I am quite confident in my DOM manipulation abilities.</p><p>I also improved my javascript array method skills greatly and using ES6 array functions like map, sort, reduce, filter and the like improved my coding abilities and quality by a ton.</p><p>His courses are very rigorous, in depth, long and you improve your skills a lot. Be prepared to struggle for a long time with his courses but it’s worth it.</p><p>To be honest, I haven’t done 100% of some of his courses (even the ones I paid for) but even doing a part or a lot of his courses improved my skills by a lot. I reference his code all the time and copy the coding style he uses for most of my projects.</p><p>One thing I am not a big fan of is how he provides heavy boilerplate for his courses. This has its benefits like having the same package.json as him so you don’t run into frustrating version problems. I personally like starting everything from scratch.</p><p>Eventually the boilerplate becomes a non-issue because there is a ton of repetition when you’re working through his courses so the important concepts become engrained in you even without starting everything from scratch.</p><p>He has great real world coding styles that are very reusable and if you copy how he codes, then you’ll become better.</p><p>Wes Bos is a great teacher with high quality courses on technologies you probably care about. I recommend his courses because they’re so great even if they’re a little pricey.</p><h3>1. Ben Awad</h3><p><a href="https://www.youtube.com/channel/UC-8QAzbLcRglXeN_MY9blyw">https://www.youtube.com/channel/UC-8QAzbLcRglXeN_MY9blyw</a></p><p>One of the newest course instructors is the young Ben Awad. I don’t remember how I found out about him but his courses are #1 in my opinion for a junior-intermediate level developer.</p><p>I wanted to learn how to create real web applications using modern technologies like graphql, react, node, orms, and things like that.</p><p>I also desperately wanted to understand user authentication so I could create user based applications instead of just creating shallow web apps that don’t have login systems.</p><p>I have been looking for those types of courses for years and never found anything of high quality.</p><p>Ben Awad came out of nowhere and showed me the light.</p><p>I don’t expect too much out of Youtube tutorials so when I watched a video from this young guy teaching authentication and full stack app development I didn’t expect much.</p><p>Most Youtube instructors do the bare minimum for their videos and always plug something like a link to their mediocre digital product. Their videos get views because they use good keywords that people are looking for.</p><p>Ben doesn’t plug anything, all his courses are available for free on his channel and best of all they’re actually high quality courses. Not only does he walk you through the code that you watch him type, he explains the concepts and reasons behind why he’s writing the code he’s writing and explains it well.</p><p>All the videos are from scratch, from the project initialization, to creating the tests, to debugging and everything. It’s amazing.</p><p>Since you are watching the creation of his projects from scratch, advanced technologies like typescript, graphql, and things like that are not intimidating and seem possible. Rather than you reading through verbose documentation from things like the library’s website, you are shown examples of how to use the APIs of things like graphql, stripe for payments, and how to write typescript code because Ben shows you from the beginning and explains everything well.</p><p>I would have never thought I could create a user authentication based, graphql server, written in typescript, with tests 6 months ago. Today that is my go to stack and it’s all thanks to Ben.</p><p>He is an extremely fast typer so it’s a little frustrating trying to follow along with him but if you can make it through like 20 or 30 videos of his, every other course is like a walk in the park in terms of following along. Be prepared to rewind and pause the videos a lot.</p><p>He also has a discord channel where he actually helps people out. It’s so above and beyond any other course instructor that he is my clear #1 for course instructors. You can find the link to his discord channel on his youtube videos, come and join!</p><p>What drew me to his videos are the technologies he teaches. I am very interested in modern web development tools that everyone raves about like graphql, node, react, typescript etc… Unfortunately, it’s hard to find great learning resources about them that are free or affordable.</p><p>If you want to learn about graphql, react, node, typescript, postgresql, ORMs, react native, testing, deployment, docker, and all the related tools and technologies in modern web development, watch his videos, you will learn a ton.</p><h3>Bonus — The Futur</h3><p><a href="https://www.youtube.com/channel/UC-b3c7kxa5vU-bnmaROgvog">https://www.youtube.com/channel/UC-b3c7kxa5vU-bnmaROgvog</a></p><p>The Future is a great Youtube channel that teaches new creative industry entrepreneurs (mostly graphic design related) how to run their business.</p><p>The videos are high quality, well edited and with great advice. I recommend this channel if you want to learn how to be a great freelancer or entrepreneur with your creative skills like design, coding or related fields.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=760de4e10e31" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>