<?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 Jane Valencia on Medium]]></title>
        <description><![CDATA[Stories by Jane Valencia on Medium]]></description>
        <link>https://medium.com/@janevalencia?source=rss-fa8f1af86940------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_adOcVuq1oi_Pw6QzhIhcg.jpeg</url>
            <title>Stories by Jane Valencia on Medium</title>
            <link>https://medium.com/@janevalencia?source=rss-fa8f1af86940------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 10:43:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@janevalencia/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[Forms in Python Django]]></title>
            <link>https://medium.com/@janevalencia/forms-in-python-django-736183b07d80?source=rss-fa8f1af86940------2</link>
            <guid isPermaLink="false">https://medium.com/p/736183b07d80</guid>
            <category><![CDATA[django]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[django-rest-framework]]></category>
            <category><![CDATA[forms]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Jane Valencia]]></dc:creator>
            <pubDate>Fri, 19 Jan 2024 06:14:07 GMT</pubDate>
            <atom:updated>2024-01-19T06:14:07.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nGOGPie5ceUTtJpJKTrT6A.png" /><figcaption>python django</figcaption></figure><blockquote>I recently pick up Python again due to new client’s project. I have mostly used Python with Flask, specifically to build IoT (Internet of Things) projects. Nonetheless, this new project requires the usage of Django, a comprehensive Python-based web framework.</blockquote><p>Both Django and Flask are great options as web framework. While, Django is generally used for larger projects due to its numerous out-of-the-box features, Flask is a great choice for projects requiring simplicity, building micro-services, and suitable for Python-guru due to its flexibility.</p><p>Enough about Flask! This article will be sharing ways of building forms in Python-Django.</p><h4>Table of Content</h4><ul><li><a href="#93ab">Pre-requisite</a></li><li><a href="#d722">Forms</a></li><li><a href="#3102">HTML Manual Form</a></li><li><a href="#675a">Django Form</a></li><li><a href="#b1a7">Final Notes</a></li></ul><h3>Pre-requisite</h3><p>Before reading further into this article, please ensure you already have the following set in your machine:</p><ol><li>Python <a href="https://www.python.org/downloads/">https://www.python.org/downloads/</a>. Hint: I am using Python3 for this article.</li><li>Understand Python and its syntax.</li><li>Have a Django project ready. Go check out Django and how to setup a project:<br>- <a href="https://docs.djangoproject.com/en/5.0/topics/install/#installing-official-release">Django installation</a><br>- <a href="https://docs.djangoproject.com/en/5.0/intro/tutorial01/">Setup first project</a><br>- <a href="https://docs.djangoproject.com/en/5.0/intro/tutorial01/#creating-the-polls-app">Setup a project app</a></li></ol><p>If you have done these steps properly, your Django project directory should look as such:</p><pre>&lt;your_project&gt;/<br>    manage.py<br>    &lt;your_project&gt;/<br>        __init__.py<br>        settings.py<br>        urls.py<br>        asgi.py<br>        wsgi.py<br>    &lt;your_app&gt;/<br>        __init__.py<br>        admin.py<br>        apps.py<br>        migrations/__init__.py<br>        models.py<br>        tests.py<br>        views.py</pre><p>Lastly, test that you can run your development server properly by running python3 manage.py runserver .</p><p>Now, you’re all set we can talk about Forms.</p><h3>Forms</h3><p>This article will discuss two ways of building form in a Django project:</p><ol><li>Manual form (HTML)</li><li>Django built-in form</li></ol><p>I will be developing Login form to demonstrate the topic.</p><p>Note:</p><ul><li>I won’t include my base.html template, so feel free to be creative!</li><li>Since, this article isn’t about Views and/or performing Authentication in Django, thus, I won’t be discussing this concept in detail.</li><li>I am using Bootstrap here. <strong>💡 Tip:</strong> Drop a comment if you need an article to setup Django with popular CSS framework / utilities such as Bootstrap, Tailwind.</li></ul><p>Overall, Django is using the MVT architecture — M for Model, V for View, and T for Template. Thus, any alternatives you choose will implement the same pattern.</p><h4>HTML (Manual) Form</h4><p>I will be building the Login form using the “Manual Form” approach.</p><p>Let’s start by creating a template (T) file where our Login form component will reside!</p><ol><li>Create a new folder templates/ inside your_app directory.</li><li>Inside the templates/ folder, create a new HTML template file. In my case, I name it templates/index.html as I want my Login form to be rendered on homepage.</li></ol><pre>&lt;your_app&gt;<br>        ...<br>        templates/index.html<br>        views.py<br>        urls.py</pre><p>Before we write anything on our template, we will first setup the View.</p><p>Go to your_app/views.py and set the following:</p><pre>from django.shortcuts import render, redirect<br>from django.contrib.auth import authenticate, login<br>from django.contrib import messages<br><br>def index(request):<br>    # Handle POST request<br>    if request.method == &#39;POST&#39;:<br>        username = request.POST[&#39;id&#39;]<br>        password = request.POST[&#39;password&#39;]<br><br>        # Authenticate<br>        user = authenticate(request, username=username, password=password)<br><br>        # Check if user exists<br>        if user is not None:<br>            # Login OK<br>            login(request, user)<br>            redirect(&#39;index&#39;)<br>        else:<br>            messages.error(request, &#39;Invalid user, check your ID and password.&#39;)<br><br>    return render(request, &#39;index.html&#39;, {})</pre><ul><li>Django calls these Views, but essentially it is our Controller in MVC pattern.</li><li>There are two views created: <em>index</em> and <em>logout_user</em> views.</li><li>The index view is responsible to render the index.html template on first load. Then, it will listen for any “POST” request made into our / route and process the request for authentication / login.</li><li>The index view is using <strong>django.contrib.auth</strong> module, specifically <em>authenticate</em> and <em>login</em><strong> </strong>functions to perform authentication. If authentication is successful, we pass the user object to login() so that later on we can access user’s information in our template.</li><li>After authentication and login are done, the index view will redirect user to (index) Dashboard. Otherwise, it will use the <strong>messages </strong>function from <strong>django.contrib</strong> module to throw UI error prompt “Invalid user, check your ID and password.”</li></ul><p>Now, make sure to add this as route to your_app/urls.py</p><pre>from django.urls import path<br>from . import views<br><br># Register your app urls<br>urlpatterns = [<br>    path(&#39;&#39;, views.index, name=&#39;index&#39;),<br>    # if you use separate login page =&gt; path(&#39;login/&#39;, views.login_user, name=&#39;login&#39;),<br>]</pre><p>Finally, we can work on building the “Manual Form”. Go to your template, in my case it is templates/index.html .</p><pre>{% block content %} <br><br>    {% if user.is_authenticated %}<br>    &lt;div&gt;<br>        &lt;h1&gt;hello, {{ user.username }}&lt;/h1&gt;<br>    &lt;/div&gt;<br><br>    {% else %}<br>    &lt;div class=&quot;col-md-4&quot;&gt;<br>        {% if messages %} <br>            {% for message in messages %}<br>                &lt;div class=&quot;alert alert-warning alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;<br>                    &lt;span&gt;{{ message }}&lt;/span&gt;<br>                    &lt;button<br>                        type=&quot;button&quot;<br>                        class=&quot;btn-close&quot;<br>                        data-bs-dismiss=&quot;alert&quot;<br>                        aria-label=&quot;Close&quot;<br>                    &gt;&lt;/button&gt;<br>                &lt;/div&gt;<br>            {% endfor %} <br>        {% endif %}<br><br>        &lt;form method=&quot;POST&quot; action=&quot;{% url &#39;index&#39; %}&quot;&gt;<br>            {% csrf_token %}<br>            &lt;div class=&quot;mb-3&quot;&gt;<br>                &lt;input<br>                    type=&quot;text&quot;<br>                    class=&quot;form-control&quot;<br>                    name=&quot;id&quot;<br>                    placeholder=&quot;Enter your Staff ID&quot;<br>                    required<br>                /&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;mb-3&quot;&gt;<br>                &lt;input<br>                    type=&quot;password&quot;<br>                    class=&quot;form-control&quot;<br>                    name=&quot;password&quot;<br>                    placeholder=&quot;Enter your password&quot;<br>                    required<br>                /&gt;<br>            &lt;/div&gt;<br>            &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary mt-2&quot;&gt;Login&lt;/button&gt;<br>        &lt;/form&gt;<br>    &lt;/div&gt;<br>    {% endif %} <br><br>{% endblock %}</pre><p>At the top, we setup a conditional statement on what to render depending on whether our user has or hasn’t been authenticated. If user is successfully authenticated, the index.html template will render &lt;h1&gt;hello, {{ user.username }} . Otherwise, the template will render our Login “Manual Form”.</p><p>Like any normal HTML form, you define your form component by using the &lt;form&gt;&lt;/form&gt; tag and ensure you have the method and action attributes properly set.</p><ul><li>Form method = “POST”</li><li>Form action = “{% url ‘index’ %}” . The url ‘string’ to be passed here is based on the name property you have set in your urls.py for your View.</li></ul><p>💡 Any &lt;form&gt;&lt;/form&gt; created in Django template must have the {% csrf_token %} set.</p><p>Thereafter, you can render HTML inputs as usual. Our Login form should take the username and password required for Django Authentication to work.</p><p>Each &lt;input&gt; element must have the name attribute as this is used to fetch the input value being entered when the View is processing the “POST” request.</p><pre>&lt;form method=&quot;POST&quot; action=&quot;{% url &#39;index&#39; %}&quot;&gt;<br>            {% csrf_token %}<br>            &lt;div class=&quot;mb-3&quot;&gt;<br>                &lt;input<br>                    type=&quot;text&quot;<br>                    class=&quot;form-control&quot;<br>                    name=&quot;id&quot;<br>                    placeholder=&quot;Enter your Staff ID&quot;<br>                    required<br>                /&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;mb-3&quot;&gt;<br>                &lt;input<br>                    type=&quot;password&quot;<br>                    class=&quot;form-control&quot;<br>                    name=&quot;password&quot;<br>                    placeholder=&quot;Enter your password&quot;<br>                    required<br>                /&gt;<br>            &lt;/div&gt;<br>            &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary mt-2&quot;&gt;Login&lt;/button&gt;<br>&lt;/form&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*mqqxQKMN4T_KAwDblWUmsg.png" /><figcaption>Login form from traditional HTML</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*wVYHSHUy3mN4oiIcTXYASw.png" /><figcaption>Upon entering invalid username and password</figcaption></figure><p>Tada, that’s it for building the “Manual” Form in Django 🎉</p><h4>Django Form</h4><p>I will be creating the Registration form to showcase the “Django” form approach.</p><p>Similarly, we start by creating a new (empty) template file. In my case, this will be templates/register.html .</p><pre>&lt;your_app&gt;<br>        ...<br>        templates/register.html<br>        views.py<br>        urls.py</pre><p>Now, since we are using Django form to render our Form component into the UI, we’ll need to set it up in forms.py</p><ol><li>Inside your app directory, create a python file called forms.py</li><li>Then follow along this code-snippet</li></ol><pre>from django import forms<br><br>class LoginForm(forms.Form):<br>    # Define form input fields<br>    username = forms.CharField(<br>        label=&#39;&#39;, <br>        max_length=6, <br>        widget=forms.TextInput(<br>            attrs={<br>                &#39;placeholder&#39;: &#39;Enter your staff ID&#39;,<br>                &#39;class&#39;: &#39;form-control&#39;,<br>            }<br>        ),<br>    )<br><br>    password = forms.CharField(<br>        label=&#39;&#39;, <br>        widget=forms.PasswordInput(<br>            attrs={<br>                &#39;placeholder&#39;: &#39;Enter your password&#39;,<br>                &#39;class&#39;: &#39;form-control&#39;,<br>            }<br>        ),<br>    )<br><br>    class Meta:<br>        fields = (&#39;username&#39;, &#39;password&#39;)</pre><p>Instead of manually rendering form and input, like what we did in the previous section, we let Django form helping us!</p><p>In the forms.py we specify a class of LoginForm which extends the forms.Form base class.</p><p>Inside our LoginForm class, we then specify the form fields we want to render - username and password input fields.</p><ul><li>forms.CharField is a string field.</li><li>label properly is essentially for the &lt;label&gt; tag of the respective input field. 💡Tip: I leave this as empty because I do not wish to render a label tag for my input fields.</li><li>You can also set built-in input validation such as max_length=6 for the username field.</li><li>widget is essentially rendering the &lt;input /&gt; element, specifically forms.TextInput is rendering &lt;input type=text ... /&gt; and forms.PasswordInput is rendering &lt;input type=&quot;password&quot; .../&gt; elements.</li><li>class Meta is used to provide additional information about the structure and behaviour of a form. It is a class within a form class that allows you to define metadata for the form. <strong>💡 Tip:</strong> We use fields or exclude in class Meta to explicitly define the fields you want in the form or specify fields to be excluded.</li></ul><p>Now, our Django form setting has been set, let’s update our login view inside views.py file:</p><pre>from django.shortcuts import render, redirect<br>from django.contrib.auth import authenticate, login<br>from django.contrib import messages<br>from .forms import LoginForm<br><br>def index(request):<br>    # Handle POST request<br>    if request.method == &#39;POST&#39;:<br>        form = LoginForm(request.POST)<br><br>        if form.is_valid():<br>            # Authenticate and login user<br>            username = form.cleaned_data[&#39;username&#39;]<br>            password = form.cleaned_data[&#39;password&#39;]<br>            user = authenticate(request, username=username, password=password)<br><br>            # Check if user exists<br>            if user is not None:<br>                # Login OK<br>                login(request, user)<br>                return redirect(&#39;index&#39;)<br>            else:<br>                messages.error(request, &#39;Invalid user, check your ID and password.&#39;)<br><br>    else:<br>        form = LoginForm()<br><br>    return render(request, &#39;index.html&#39;, {&#39;form&#39;: form})</pre><p>The logic of authentication and login remain the same as the previous section (HTML Manual Form). The differences lay in:</p><ul><li>Having the if form.is_valid(): condition.</li><li>Instead of getting the username and password from the request body such as username = request.POST[‘id’] , we get the input value via form built-in clean function like username = form.cleaned_data[‘username’] .</li></ul><p>Next, make sure the index View routed in urls.py if you haven’t already done so.</p><pre>from django.urls import path<br>from . import views<br><br># Register your app urls<br>urlpatterns = [<br>    path(&#39;&#39;, views.index, name=&#39;index&#39;),<br>]</pre><p>Finally, we can render our Django form in our templates/index.html :</p><pre>{% block content %} <br><br>    {% if user.is_authenticated %}<br>    &lt;div&gt;<br>        &lt;h1&gt;hello, {{ user.username }}&lt;/h1&gt;<br>    &lt;/div&gt;<br><br>    {% else %}<br>    &lt;div class=&quot;col-md-4&quot;&gt;<br>        {% if messages %} <br>            {% for message in messages %}<br>                &lt;div class=&quot;alert alert-warning alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;<br>                    &lt;span&gt;{{ message }}&lt;/span&gt;<br>                    &lt;button<br>                        type=&quot;button&quot;<br>                        class=&quot;btn-close&quot;<br>                        data-bs-dismiss=&quot;alert&quot;<br>                        aria-label=&quot;Close&quot;<br>                    &gt;&lt;/button&gt;<br>                &lt;/div&gt;<br>            {% endfor %} <br>        {% endif %}<br><br>        &lt;form method=&quot;POST&quot; action=&quot;&quot;&gt;<br>            {% csrf_token %}<br>            &lt;h2 class=&quot;text-primary h4&quot;&gt;Login Django Form&lt;/h2&gt;<br>            &lt;hr /&gt;<br><br>            {% for field in form %}<br>                &lt;div class=&quot;mb-3&quot;&gt;<br>                    {{ field }}<br>                &lt;/div&gt;<br>            {% endfor %}<br><br>            &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary mt-2&quot;&gt;Login&lt;/button&gt;<br>        &lt;/form&gt;<br><br>    &lt;/div&gt;<br>    {% endif %} <br><br>{% endblock %}</pre><p>Instead of manually typing the &lt;input /&gt; elements like in the previous section, through Django form, all we need to do is looping through the fields in form object being passed to our template.</p><ul><li>Form method must still be “POST”.</li><li>However, we no longer need action = “ ” because this is now handled behind the scene by our Django form.</li></ul><p><strong>💡 Tip:</strong></p><p>There’s shortcut template tag such as {{ form }} or usually people also use {{ form.as_p }} to simply render all form fields in a single command. Nonetheless, using loop has its own advantages such as flexibility — layout, styling, and correct HTML semantics following your design requirement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*1BcVW3I4QGIHlhjW0B1i_w.png" /><figcaption>Login form via Django Forms</figcaption></figure><h3>Final Note</h3><p>Check out official documentation on Django Forms <a href="https://docs.djangoproject.com/en/5.0/#forms">here</a> should you dive in deeper!</p><p>As always, thank you for reading 🖤</p><p>If you find this article useful, give it claps 👏 There’s always something new to learn everyday.</p><p>Until next article 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=736183b07d80" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use Google Fonts with Next.js]]></title>
            <link>https://medium.com/@janevalencia/use-google-fonts-with-next-js-bc7a2d1d3733?source=rss-fa8f1af86940------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc7a2d1d3733</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react-framework]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Jane Valencia]]></dc:creator>
            <pubDate>Mon, 10 Oct 2022 08:46:37 GMT</pubDate>
            <atom:updated>2022-10-10T08:46:37.364Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="nextjs" src="https://cdn-images-1.medium.com/max/1000/1*KDMx1YspSrBcFJG-NDZgDg.png" /></figure><h3>Overview</h3><p>Typography is not just a matter of <em>beautiful </em>fonts.</p><p>It is an important part of UI design and User Experience. As a Web Developer, you will definitely be working with fonts and should know how to import custom-fonts into the App being developed.</p><p>This article will discuss how to import Google-Fonts into your Next.js project.</p><figure><img alt="google-fonts" src="https://cdn-images-1.medium.com/max/1024/1*ySy2JRfuaflt1Rtc2BKV_g.png" /></figure><p>There are a few ways to add Google-Fonts into your Next.js project.</p><p>This article will specifically discuss the following options:</p><ol><li>Add google-fonts CDN into HTML Metadata.</li><li>Add @import google-fonts to CSS file.</li></ol><h3>#1 HTML Metadata</h3><p>This option, in my opinion, is the easiest setup and Next.js supports it well.</p><p>Nonetheless, you should notice that when you are trying to add the Google-Font CDN into a particular page i.e. index.js/tsx, Next.js will throw you an error that `custom font you’re adding was added to a page`. It should signal us that this is not how Next.js wants us to import the font.</p><p>There is this feature in Next.js called no-page-custom-font which is intended to prevent page-only custom fonts or inconsistent custom fonts to be used across all pages.</p><p><a href="https://nextjs.org/docs/messages/no-page-custom-font">Read more about ‘No Page Custom Font’ on Nextjs-Official-Documentation.</a></p><p>To fix the error as well as being able to import google-form via the HTML metadata, we can use this no-page-custom-font feature.</p><p>First, let’s create _document.js/tsx inside pages directory ./pages/ and add the following code-snippet:</p><pre>// pages/_document.tsx<br><br>import Document, { Html, Head, Main, NextScript } from &#39;next/document&#39;;<br><br>class MyDocument extends Document {<br>  render() {<br>    return (<br>      &lt;Html&gt;<br>        &lt;Head&gt;<br>           &lt;link            <br>               href=&quot;https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&amp;display=swap&quot; <br>               rel=&quot;stylesheet&quot;<br>           /&gt;<br>        &lt;/Head&gt;<br>        &lt;body&gt;<br>          &lt;Main /&gt;<br>          &lt;NextScript /&gt;<br>        &lt;/body&gt;<br>      &lt;/Html&gt;<br>    )<br>  }<br>}<br><br>export default MyDocument;</pre><p>This document component is essentially wrapping the whole HTML document of your Next.js project — as you notice from the tag. In particular, the HTML metadata or &lt;Head&gt;..&lt;/Head&gt; is to be loaded all the time regardless which specific page is up.</p><p>Similar to how you might normally import the Google-Font CDN into the metadata, we are also using the &lt;link /&gt; tag here and pass on the google-fonts generated link for the particular font you are trying to import. In this example, I am trying to import the Rubik font with font-weight = 400,500,700 .</p><p>That is all you need to do! You can verify that Google-Font has been linked successfully to your project by inspecting the DOM element of your project. You should see the google-fonts CDN link under the HTML metadata or &lt;head&gt;...&lt;.head&gt; tag.</p><h3>#2 CSS @import</h3><p>This option is probably the most-commonly used especially if you wish to keep all styling-related files together.</p><p>Although, it might have been an edge-case, I notice that this option does not always work when you are also using CSS-preprocessor such as SASS/SCSS.</p><p>I have tried to implement this option on my personal-project. I can see the font is added well on development. However, the font failed to be added in production-build.</p><p>There could be something that I miss to configure it right. If you have come across similar issue and had tips, please share it in the comment! 🙌</p><p>Nonetheless, if you are using the standard CSS, this option will definitely work as intended!</p><p>This option is using the @import CSS rule to reference the Google-Font CDN. You will want this import-rule to be before any of your CSS classes.</p><p>Depending on how you structure your Next.js project, normally you will have one main.css or globals.css which is to be imported once on your App.js or _app.tsx file as this is the main-styling file.</p><p>Find that main-styling file for your particular project, then add this following @import CSS rule at the very top of that file.</p><pre>@import url(https://medium.com/&quot;https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&amp;display=swap&quot;);</pre><pre>/* can now reference the font */ <br>body {   <br>  font-family: &#39;Rubik&#39;, sans-serif;<br>}</pre><p>This should do it! Check that your site is now using the font-family of that Google-Font you are importing.</p><p>As always, thank you for reading 🖤</p><p>There is always something new to learn everyday, and if you find this article useful, give it claps 👏!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc7a2d1d3733" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Modal With React-Portals]]></title>
            <link>https://medium.com/@janevalencia/creating-modal-with-react-portals-a55c57bba1eb?source=rss-fa8f1af86940------2</link>
            <guid isPermaLink="false">https://medium.com/p/a55c57bba1eb</guid>
            <category><![CDATA[typescript-with-react]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-portal]]></category>
            <category><![CDATA[web-developer]]></category>
            <dc:creator><![CDATA[Jane Valencia]]></dc:creator>
            <pubDate>Thu, 29 Sep 2022 08:32:24 GMT</pubDate>
            <atom:updated>2024-01-22T18:37:07.550Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qGl490jEE7NDVfNN-OcfHQ.jpeg" /><figcaption>Modal wrapped by React Portal</figcaption></figure><h3>TL;DR</h3><blockquote>It is without doubt at some point in your career as a Web Developer that you will need to build and work with a Modal. This specific article will teach you how to create a Modal component using React feature — <strong>Portals</strong>.</blockquote><p><strong>Contents</strong></p><ul><li><a href="#b750">What is Portals?</a></li><li><a href="#26ea">Why is it useful for building Modal?</a></li><li><a href="#b64d">Guide: Create Modal with React Portal</a></li></ul><h3>What is Portals?</h3><p>According to the official React <a href="https://reactjs.org/docs/portals.html">documentation</a>, Portals provide a way for us to render a children component into a DOM node that exists outside the DOM hierarchy of the parent component.</p><p>ReactDOM.createPortal(child, container)</p><p>The child argument can take any <strong>renderable React child</strong> — string, element, or fragment — which you wish to render outside the DOM hierarchy. Meanwhile, the second argument takes a <strong>wrapper </strong>or container for the portal itself.</p><h3>Why is it useful for building Modal?</h3><p>Although, Modal may look simple, building one can quickly become complicated as it is not easy to manage all the Z-index and DOM hierarchy as your project gets bigger and deeply nested.</p><p>In React, a component is mounted into the DOM as a child component of the nearest parent component. Hence, from top to bottom, the layout hierarchy may look as such:</p><pre>root / body<br>--- parent component<br>------ child component<br>---------- leaf component: where Tooltip, Modals, Overlays might be</pre><p>As you can imagine, managing the z-index values or overflow: hidden will be messy at this point! Yes, you may argue to set a very high Z-index value, but this strategy is tedious and often unsuccessful.</p><p>For this reason, React has created Portals. It provides the ability for an element to render outside the default hierarchy without compromising the parent-child relationship between components. Additionally, event bubbling and passing context work exactly the same like a normal React child component.</p><p><strong>FYI:</strong> Portals can also be used to render any top-level elements, such as Overlays, Tooltip, and Full-page Navigation Bar.</p><h3>Guide: Create Modal with React Portal</h3><h4>Required Components</h4><p>You will need to have the following three (3) components:</p><ul><li>ReactPortal</li><li>Modal</li><li>Parent or any component which will use the Modal component and manage its active state</li></ul><h4>Create ReactPortal.jsx/tsx</h4><p>Now, let’s create a ReactPortal.jsx/tsx in your React source code src/components folder and drop the following code-snippet — I will explain in detail what each code-fragment does in the next section.</p><pre>// @src/components/ReactPortal.tsx</pre><pre>import { ReactNode, useState, useLayoutEffect } from &quot;react&quot;;<br>import { createPortal } from &quot;react-dom&quot;;</pre><pre>// Default props value.<br>const defaultReactPortalProps = {<br>    wrapperId: &quot;react-portal&quot;<br>}<br></pre><pre>// Define ReactPortal props.<br>type ReactPortalProps = {<br>   children: ReactNode,<br>   wrapperId: string<br>} &amp; typeof defaultReactPortalProps;<br></pre><pre>// Render component.<br>const ReactPortal = ({children, wrapperId} : ReactPortalProps) =&gt; {</pre><pre>   // Manage state of portal-wrapper.<br>   const [ wrapper, setWrapper ] = useState&lt;Element | null&gt;(null);<br>   <br>   useLayoutEffect(() =&gt; {</pre><pre>        // Find the container-element (if exist).       <br>        let element = document.getElementById(wrapperId);</pre><pre>        // Bool flag whether container-element has been created.       <br>        let created = false;</pre><pre>        if (!element) {<br>            created = true;<br>            const wrapper = document.createElement(&#39;div&#39;);<br>            wrapper.setAttribute(&quot;id&quot;, wrapperId);<br>            document.body.appendChild(wrapper);<br>            element = wrapper;<br>        }</pre><pre>        // Set wrapper state.<br>        setWrapper(element);</pre><pre>        // Cleanup effect.<br>        return () =&gt; {<br>            if (created &amp;&amp; element?.parentNode) {<br>               element.parentNode.removeChild(element);<br>            }<br>        }<br>   }, [wrapperId]);</pre><pre>   // Return null on initial rendering.<br>   if (wrapper === null) return null;</pre><pre>   // Return portal-wrapper component.<br>   return createPortal(children, wrapper);</pre><pre>}<br>ReactPortal.defaultProps = defaultReactPortalProps;</pre><pre>export default ReactPortal;</pre><p>To work with React Portal, we will need to add import { createPortal } from “react-dom” .</p><p>As mentioned previously, we can create a React portal using the following function ReactDOM.createPortal(child, container) . Thus, the ReactPortal component we are creating should require the following props {children, wrapperId} , whereby the wrapperId will be used to set the container argument.</p><p>Further, I am defining the default props value for the ReactPortal component. For this purpose, I am setting the default value of wrapperId = &quot;react-portal&quot; . This way, if we do not pass any wrapperId to props, it will try to find the default container-element id = react-portal in the DOM.</p><p>Nonetheless, this ReactPortal should be a dynamic component as it can be used anywhere and by any renderable React child — not just a Modal. For this reason, I have added a conditional statement to check if the container-element with given wrapperId is not found, then we will create it.</p><pre>if (!element) {<br>      created = true;<br>      const wrapper = document.createElement(&#39;div&#39;);<br>      wrapper.setAttribute(&quot;id&quot;, wrapperId);<br>      document.body.appendChild(wrapper);<br>      element = wrapper;<br>}</pre><p>As for ensuring the <em>effect </em>of properly mounting the Portal’s container-element, I am using the useLayoutEffect() instead of the well-known useEffect() . The reason being the first-option gets triggered synchronously after all DOM mutation and makes changes to DOM directly before the browser gets repainted — which is essentially what we want for this purpose.</p><p>Thereafter, we then add the above code-snippet of creating the dynamic container-element inside the useLayoutEffect() , then run setWrapper() to the existing / newly-created container-element, and lastly, do not forget to return the cleanup function to remove the container-element when ReactPortal is finally unmounted.</p><pre>// Manage state of portal-wrapper.<br>const [ wrapper, setWrapper ] = useState&lt;Element | null&gt;(null);<br>   <br>useLayoutEffect(() =&gt; {</pre><pre>   let element = document.getElementById(wrapperId);<br>   let created = false;</pre><pre>   if (!element) {<br>            created = true;<br>            const wrapper = document.createElement(&#39;div&#39;);<br>            wrapper.setAttribute(&quot;id&quot;, wrapperId);<br>            document.body.appendChild(wrapper);<br>            element = wrapper;<br>    }</pre><pre>    // Set wrapper state.<br>    setWrapper(element);</pre><pre>    // Cleanup effect.<br>    return () =&gt; {<br>        if (created &amp;&amp; element?.parentNode) {<br>           element.parentNode.removeChild(element);<br>        }<br>    }<br>   }, [wrapperId]);</pre><p>Finally, we can return the createPortal(children, wrapper) function, whereby the children will be the Modal component or any renderable child-component and wrapper is the container-element we have set from the useLayoutEffect().</p><pre>// Return portal-wrapper component.<br>return createPortal(children, wrapper);</pre><p>This has essentially created the Portal component for us and is now ready for use!</p><h4>Wrap Modal.jsx/.tsx with React Portal</h4><p>Now, let’s create a simple Modal component.</p><p>Create a Modal.jsx/tsx inside src/components folder that you already have. For the purpose of this guideline, I am creating a sample Delete-Modal which will perform a Delete function on some data.</p><pre>// @src/components/Modal.tsx</pre><pre>import { useState, Dispatch, SetStateAction } from &#39;react&#39;;<br>import { ReactPortal } from &#39;./&#39;;</pre><pre>// Define the props of Modal.<br>type ModalProps = {<br>   isOpen        : boolean,<br>   setOn         : Dispatch&lt;SetStateAction&lt;boolean&gt;&gt;,<br>   title?        : string,<br>   promptText?   : string,<br>   handleDelete? : Function<br>}</pre><pre>// Modal component.<br>const Modal = (<br>    { isOpen, setOn, title, promptText, handleDelete } : ModalProps ) =&gt; {</pre><pre>    // Manage button enabled/disabled state.<br>    const [ disabled, setDisabled ] = useState&lt;boolean&gt;(false);</pre><pre>    // Return null if isOpen props from parent is false.<br>    if (!isOpen) return null;</pre><pre>    // Run when delete is confirmed.<br>    const confirmDelete = () : void =&gt; {</pre><pre>        // Disable the buttons (this could also be anything).<br>        setDisabled(true);</pre><pre>        // Execute delete comment or reply.<br>        if (handleDelete) handleDelete();</pre><pre>    }</pre><pre>    return (</pre><pre>       &lt;ReactPortal wrapperId=&quot;react-portal-modal-container&quot;&gt;</pre><pre>          &lt;div className=&quot;modal&quot;&gt;</pre><pre>              {/* Modal Heading */}<br>              &lt;div className=&quot;modal__modal-heading&quot;&gt;<br>                &lt;h3 className=&quot;modal__modal-title&quot;&gt;{title}&lt;/h3<br>              &lt;/div&gt;</pre><pre>              {/* Modal Prompt Text */}<br>              &lt;div className=&quot;modal__modal-body&quot;&gt;<br>                &lt;p&gt;{promptText}&lt;/p&gt;<br>              &lt;/div&gt;</pre><pre>              {/* Modal CTA */}<br>              &lt;div className=&quot;modal__modal_flex_row modal__modal_justify_between&quot;&gt;</pre><pre>                 &lt;button<br>                    className=&quot;modal__modal-btn-close&quot;<br>                    onClick={ () =&gt; setOn(false) }<br>                    disabled={disabled}<br>                 &gt;<br>                    NO, CANCEL<br>                 &lt;/button&gt;</pre><pre>                 &lt;button<br>                    className=&quot;modal__modal-btn-confirm-delete&quot;<br>                    onClick={confirmDelete}<br>                    disabled={disabled}<br>                 &gt;<br>                    YES, DELETE<br>                 &lt;/button&gt;<br>               &lt;/div&gt;</pre><pre>          &lt;/div&gt;</pre><pre>       &lt;/ReactPortal&gt;<br>    );</pre><pre>}</pre><pre>export default Modal;</pre><p>As you can see we are importing the ReactPortal component we have just created and use it as a wrapper to our Modal component. The Modal component is the {children} props passed to ReactPortal.</p><pre>return (<br>   &lt;ReactPortal&gt;<br>       ... your Modal here.<br>   &lt;/ReactPortal&gt;</pre><pre>)</pre><h4>Use the Modal in the parent-component</h4><p>We are almost done! Now, all we have to do is to render the Modal component into our App or any parent-component that will be managing the Modal state.</p><p>For simplicity, let’s just mount the Modal component in App.js/ts :</p><pre>// @src/App.ts</pre><pre>import { useState } from &quot;react&quot;;<br>import Modal from &quot;./components/Modal&quot;;<br>import &quot;../styles/globals.scss&quot;;</pre><pre>function App() {<br>    // Manage state of Delete Modal toggle.<br>    const [ openModal, setOpenModal ] = useState&lt;boolean&gt;(false);</pre><pre>    // Handle delete comment.<br>    const handleDelete = async () =&gt; {<br>        // do something here, example: call delete API.<br>        console.log(&#39;Deleted.&#39;);<br>    }</pre><pre>return (<br>      &lt;div className=&quot;__next&quot;&gt;<br>            &lt;button<br>              className=&quot;button button__delete&quot;<br>              onClick={ () =&gt; setOpenModal(true) }<br>            &gt;<br>               Delete<br>            &lt;/button&gt;</pre><pre>            {/* Modal for deletion */}<br>            &lt;Modal<br>                isOpen={openModal}<br>                setOn={setOpenModal}<br>                title={`Delete comment`}<br>                promptText={`Are you sure you want to delete this comment? This will remove the comment and can&#39;t be undone.`}<br>                handleDelete={handleDelete}<br>            /&gt;<br>      &lt;/div&gt;<br>    );<br>}<br><br>export default App;</pre><p>Finally, run your project and inspect the DOM tree. You will notice when you open your Modal, the React Portal id=”react-portal-modal-container”&gt;…&lt;/div&gt; is rendered outside the App id=”__next” . In a way, this <em>portals</em> the Modal outside the default hierarchy without compromising the parent-child relationship between components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QqFkfrcRtYvTu-Y5_3dEHA.png" /><figcaption>DOM tree when opening a Modal which rendered by React-Portal</figcaption></figure><p>That is all for now. Thank you for reading 🖤</p><p>There is always something new to learn everyday, and I hope you find this article useful!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a55c57bba1eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WSL: Experiencing Linux With The Comfort of Your Windows PC]]></title>
            <link>https://medium.com/@janevalencia/wsl-experiencing-linux-with-the-comfort-of-your-windows-pc-91ae96f97c43?source=rss-fa8f1af86940------2</link>
            <guid isPermaLink="false">https://medium.com/p/91ae96f97c43</guid>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[windows-11]]></category>
            <category><![CDATA[remote-development]]></category>
            <category><![CDATA[wsl-2]]></category>
            <category><![CDATA[windows-subsystem-linux]]></category>
            <dc:creator><![CDATA[Jane Valencia]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 04:32:49 GMT</pubDate>
            <atom:updated>2022-07-15T04:32:49.300Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="featured-image-tutorial" src="https://cdn-images-1.medium.com/max/849/1*QkC3-HpJzm6qhprsHgRBwg.png" /></figure><h3>TL;DR</h3><blockquote>As much as pro-Linux users may attempt to influence you to stay away from Windows, there are a lot of benefits from making use of both systems. If you use Microsoft .NET for development and the Office apps, I cannot express how convenient it is working with these on Windows — for obvious reason! However, as Software Developer, I am also aware how powerful, flexible, reliable, and stable Linux is.</blockquote><blockquote>Hence, to compensate for both, WSL (Windows Subsystem for Linux) indeed comes in handy!</blockquote><p>With the release of Windows 11, Microsoft has also made improvements on its Windows Subsystem for Linux (WSL). Yes — for those who may not know — WSL allows you to run Linux distribution (i.e. Ubuntu or Debian) in Windows without the need to setup a full-blown VM (Virtual Machine) or even a dual-boot system.</p><h4>Table of Contents</h4><ul><li><a href="#7313"><strong>Why ‘Bother’ with WSL</strong></a></li><li><a href="#4dd3"><strong>How to Setup WSL 2.0</strong></a></li><li><em>- </em><a href="#3ac7"><em>Pre-requisites</em></a></li><li><em>- </em><a href="#bd6c"><em>Installation</em></a></li><li><em>- </em><a href="#e5d6"><em>Set default</em></a></li><li><em>- </em><a href="#57f6"><em>Run (multiple) WSL</em></a></li><li><em>- </em><a href="#7883"><em>File explorer</em></a></li><li><a href="#3aad"><strong>Setup WSL With Dev Tools</strong></a></li><li><em>- </em><a href="#02f8"><em>Docker</em></a></li><li><em>- </em><a href="#6bb0"><em>Git</em></a></li><li><em>- </em><a href="#21a8"><em>Visual Studio Code</em></a></li></ul><h3>Why ‘Bother’ with WSL</h3><h4>Great for Beginners</h4><p>If you are currently working or aspiring to be in software development — you do not have to, but — it is useful to know Linux-commands.</p><p>Instead of getting the full-blown Linux OS in order to do this, if you are already using Windows, you should setup WSL to get started and familiarise yourself with Linux-commands. It is seriously very simple to setup!</p><h4>Open Source Development</h4><p>Many development tools are created with open-source and Linux in mind. WSL is a way to keep developers remain in Windows despite using open-source tools.</p><p>This is a very important market to win and retain that Microsoft obviously do not wish to lose against Apple with Mac (Unix). Furthermore, Mac is generally priced higher than most Windows laptop out there. It is just not wise to get a Mac just for the sake of Unix-like environment when software developer can easily benefit from setting up WSL.</p><h4>No Need for VM &amp; Dual-Boot</h4><p>WSL is already part of Windows, thus, there is no need to install Linux OS (dual-boot) or even maintaining Virtual Machine (VM).</p><p>Installing a separate Linux-boot will require more storage space and specific backup in case ‘something’ happens. Additionally, you will need to constantly restart if you need to switch running something on Linux then Windows, and vice versa. The hassle! ⏲</p><p>Virtual Machine (VM) may be simpler to setup, but you often need to setup a file-system on top to allow file-sharing easier between Linux and Windows. Further, and probably the biggest drawback for me personally, is the performance overhead of a VM 🔥.</p><p>WSL is a much lighter alternative and has been developed to work effectively and efficiently on a Windows machine — completely integrated with tools such as PowerShell and and Visual Studio Code — and to support Windows-Linux interoperability.</p><p>In addition to Windows OS being upgraded, the WSL (Windows Subsystem for Linux) has also been upgraded to v2 since the release of Windows 10 v1903 build 18362 or later.</p><p><a href="https://docs.microsoft.com/en-us/windows/wsl/compare-versions#comparing-features"><strong>Read more on differences between WSL 1.0 vs WSL 2.0 here.</strong></a></p><p>Nonetheless, with the release of Windows 11, there are many new features added to WSL 2.0, such as:</p><ul><li>Support of Linux GUI (Graphical User Interface)</li><li>Storage enhancement</li><li>Easier installation and upgrade of the platform</li><li>File explorer integration</li></ul><h3>How to Setup WSL 2.0</h3><h4>Pre-requisites</h4><ul><li>Running Windows 10 ver. 2004 and higher (Build 19041 and higher), OR</li><li>Running Windows 11</li></ul><h4>Installation</h4><p><strong>Disclaimer</strong>: By default, this command will install WSL 2.0. If you wish to install, upgrade from, or downgrade to WSL 1.0, <a href="https://docs.microsoft.com/en-us/windows/wsl/install#upgrade-version-from-wsl-1-to-wsl-2">click here</a> to follow this guideline made by Microsoft.</p><ol><li>Open up Windows Command Prompt or PowerShell.</li><li>Run wsl --install command, once completed restart your machine.</li></ol><p>The wsl --install command will download the latest Linux kernel and, by default, <em>Ubuntu</em> as the Linux distro (distribution).</p><p>However, the simple wsl --install command will only work if you DO NOT have WSL installed at all!</p><p>To check if you already have WSL installed, run wsl -l -v . If it is true that you already have WSL installed on your machine, you can skip the WSL installation and go straight to install the Linux distro.</p><p>To see all available distros online, run this command wsl --list --online .</p><p>To install other Linux distro of your choice (remember by default installing WSL will come with Ubuntu), run this command wsl --install -d [distro name] .</p><p>Once you the process of installing WSL and Linux-distro are completed, you will be asked to create <strong>username</strong> and <strong>password. </strong>This username and password will be specific to each of the Linux-distro you have installed.</p><figure><img alt="Set username and password for each Linux-distro installed" src="https://cdn-images-1.medium.com/max/1024/1*NkNJPAljOwnsq_rmpjbq2A.png" /><figcaption>Set username and password for each Linux-distro installed</figcaption></figure><p>Lastly, I recommend that you regularly do update and upgrade your package manager — for security reason — . If you are using Ubuntu or Debian, you can do so by running this command:</p><pre>sudo apt update &amp;&amp; sudo apt upgrade</pre><p>Congratulation, you are now have WSL ready! 🚀</p><h4>Set default</h4><ol><li>Open up Windows Command Prompt or PowerShell.</li><li>To set default WSL version, run command wsl --set-default-version [State version 1 or 2] .</li><li>You can also set the default Linux-distro you wish to use, run command wsl --setdefault [Distro name you want to use] . For example, I want to use Debian as my default Linux-distro, then I will run wsl --setdefault Ubuntu .</li><li>To verify that your config has changed, run wsl -l -v .</li><li>The default WSL and Linux-distro will be noted with * .</li></ol><figure><img alt="Installing other available Linux-distro" src="https://cdn-images-1.medium.com/max/1024/1*Jg0uwLnKhzYLmRBkReyCbg.png" /><figcaption>Installing other available Linux-distro</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*n6UopHzsOpMr44MdFMqNGQ.png" /><figcaption>List of installed WSL version and corresponding Linux-distro</figcaption></figure><h4>Run (multiple) WSL</h4><p>There are many ways to run WSL, including multiple WSL at once. I recommend you to use the ‘PowerShell’ way as this will give you extra benefit to switch between tabs 😃.</p><p>To run the default Linux-distro from PowerShell, simply type wsl .</p><p>To run a specific Linux-distro that you have installed from PowerShell, simply type in the installed Linux-distro. For example, I wish to run debian, then I just need to type in debian .</p><figure><img alt="run-wsl" src="https://cdn-images-1.medium.com/max/1024/1*eMozdMIAUt6niVLmWDcWyw.png" /><figcaption>Successfuly run WSL 🚀</figcaption></figure><p><strong>! Important !</strong></p><p>When you open the default Linux-distro via wsl , it will direct you to the current <strong><em>Windows</em></strong> directory where your WSL is mounted. For example, for my setup the C:\ drive is mounted in /mnt/c/Users/user or you can check yours by running command on PowerShell wsl pwd .</p><p>Nonetheless, the rule of thumb should always:</p><blockquote>Store your project files in the same OS as the tools you will be using to access.</blockquote><p>Therefore, when you have project files in Linux-distro, you may want to work with your Linux-distro home directory. So, make sure you switch back to home-directory by running cd ~ as running the default launcher wsl will not directly take you there.</p><p>If you curious of other basic WSL commands, check it out <a href="https://docs.microsoft.com/en-us/windows/wsl/basic-commands">here</a>.</p><h4>File explorer</h4><p>Once you have installed WSL and Linux-distro, you should now see Linux with all of your installed distros in File Explorer’s navigation pane.</p><p>For example, on my machine I have debian , ubuntu , and docker setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*cLsBQDQhc2niUsuox-Xlyw.png" /><figcaption>Go to File Explorer &gt; Linux &gt; List of Installed Linux-distros</figcaption></figure><h3>Setup WSL With Dev Tools</h3><h4>Docker</h4><ol><li>Download Docker desktop for Windows <a href="https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe">here</a>, then follow installation prompt.</li><li>Launch Docker desktop.</li><li>Go to Settings</li><li>In <em>General &gt;</em> Check the option for “Use the WSL 2 based engine”<em>.</em></li><li>Then go to <em>Resources &gt; WSL Integration &gt;</em> Turn on the toggle for the distros you wish to integrate with Docker.</li><li>Click <em>Apply &amp; Restart.</em></li><li>To verify Docker has been successfully integrated, open up Windows Terminal or PowerShell and launch your WSL.</li><li>Finally, run command docker --version , as below:</li></ol><pre>~$ docker --version<br>Docker version 20.10.14, build a224086</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_AtuDdB7SjtZ9QsSg_t4Q.png" /><figcaption>Docker Desktop: Make sure to check Use WSL 2 based engine</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tIwgzFyGcRZNoVTTuDc8Aw.png" /><figcaption>Docker Desktop: Linux-distro integration</figcaption></figure><h4>Git</h4><h4>Instal Git on WSL</h4><p>Git can definitely be installed on both Windows and WSL. Nonetheless, it should be noted that when you install a Linux-distro (i.e. Ubuntu, Debian), you are essentially installing a new file system, separated from your actual Windows file system C:\ .</p><p>To install the latest Git version in Ubuntu and Debian distros:</p><ol><li>Launch WSL or Linux-distro of your choice.</li><li>Run command sudo apt-get install git .</li><li>Verify that it has been installed on your distro git --version .</li></ol><h4>Git configuration</h4><p>Each of your Linux-distro will have its own Git config — remember each disto is its own file-system.</p><p>To setup your Git config — assuming you have your Git accounts and SSH ready:</p><ol><li>Launch WSL or Linux-distro of your choice.</li><li>Set your Git username<br>git config --global user.name “Enter Your Git Username&quot;</li><li>Set your Git email <br>git config --global user.email &quot;Enter Your Git Email&quot;</li></ol><p>You can always edit your Git config with text-editor, including nano with <br>nano ~/.gitconfig .</p><p>If you need multi-factor authentication (GitHub, Bitbucket, Azure DevOps), you can setup and enable Git Credential Manager (GCM). Check out <a href="https://docs.microsoft.com/en-us/windows/wsl/tutorials/wsl-git#git-credential-manager-setup">here</a>.</p><h4>Allow GitHub client to access your WSL repos</h4><p>You may want to have access your Git repository saved in WSL in Git GUI, such as GitHub desktop. Hence, you could create a network drive for each of the installed Linux-distro you will be using.</p><p>The steps are very straightforward:</p><ol><li>Open File Explorer</li><li>Right-click on the Linux-distro of your choice, for example Ubuntu.</li><li>(Windows 11 user) Click on <em>Show More Options </em>menu.</li><li>Click on <em>Map network drive </em>menu.</li><li>Choose your preferred Drive name.</li><li>Ensure you check <em>Reconnect at sign-in</em>.</li><li>Click on Finish!</li><li>Verify that you should now be able to see your newly created Network Drive in File Explorer, for example Debian (\\wsl.localhost) (X:)👏</li></ol><h4>Visual Studio Code (VSCode)</h4><p>Download Visual Studio Code for Windows <a href="https://code.visualstudio.com/download">here</a>.</p><p><strong>Note:</strong> Make sure you tick the add to PATH option upon installing, so you can use the code . command in WSL to open your project folder.</p><p>Furthermore, you will also need to ensure your Linux-distro is up-to-date as some Linux-distro could be lacking libraries required to start the server on VSCode.</p><p>To update Ubuntu / Debian packages, run sudo apt-get update .</p><p>You should also install the following libraries into your Linux-distro:</p><ol><li>Add wget — for retrieving content via web server — sudo apt-get install wget</li><li>Add ca-certificates — to work with SSL certificate — sudo apt-get install ca-certificates</li></ol><p>Install the following VSCode plugins / extensions:</p><ul><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl">Remote-WSL</a> : allows you to open and work on your WSL projects on VSCode.</li><li>Remote Containers WSL (useful if you are also using VSCode with Docker) : allows you to open your project or repository on a Docker container.</li></ul><p>A couple ways to access and open your WSL project on VSCode Remote:</p><ol><li>Navigate to your WSL project via CLI / Terminal and then type code .</li><li>Launch VSCode, then use shortcut CTRL + SHIFT + P and type Remote-WSL &gt; Choose to run New WSL Window or New WSL Window using Distro.</li></ol><p>While you are on VSCode Remote, you could also install various extensions and fully make use of VSCode features just like you normally would in VSCode Windows 🚀</p><p>That is all for now!</p><p>Thank you for reading and hope this tips help you to get started.</p><p>Kindly like, comment, and share if you find this helpful! Any support is always appreciated ❤️ Until next time 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91ae96f97c43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Development and Creative Setup On A MacBook M1 macOS Monterey 2022]]></title>
            <link>https://medium.com/@janevalencia/software-development-and-creative-setup-on-a-macbook-m1-macos-monterey-2022-1a7808016e92?source=rss-fa8f1af86940------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a7808016e92</guid>
            <category><![CDATA[apple-silicon]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[development-tools]]></category>
            <category><![CDATA[software-engineer]]></category>
            <category><![CDATA[m1-chip]]></category>
            <dc:creator><![CDATA[Jane Valencia]]></dc:creator>
            <pubDate>Sun, 03 Jul 2022 06:17:46 GMT</pubDate>
            <atom:updated>2022-07-03T06:17:46.210Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="featured-image-2021-MacBook-Pro-M1-Chip" src="https://cdn-images-1.medium.com/max/1024/1*5m9PBKcrnwsfaGjou2ThCA.jpeg" /><figcaption>2021 MacBook Pro M1 Chip</figcaption></figure><h3>TL;DR</h3><blockquote>After being a long-time user of Windows, I finally decided to switch to Apple Silicon and get myself the 2021 14&quot; MacBook Pro M1 Chip with 16GB unified memory and 1TB SSD. I created this guideline to help others setting up their new M1 machine and to save my future-self in case I might need to re-setup!</blockquote><p>Initially, the thought to switch is driven by the fact that my team is gradually migrating the company infrastructure from the Intel-based to M1 Apple Silicon that eventually I, too, will have to get used to the new Apple Silicon in order to complete any development and testing work.</p><p>As I researched through countless reviews on the new MacBook M1, I was very impressed with the findings and test results on this machine! Mind you — I am fully aware how flashy the Apple marketing strategy can be ✨ Nonetheless, this time I see M1 is not merely a “hype”, but a legitimately powerful next-gen machine built by 🍎.</p><p>Furthermore, I was disappointed with the performance of the 11th-generation Intel Chip in comparison to its competitor the AMD Ryzen series. Yes, the prior is still winning in terms of single-threaded performance. But seeing how the latter has grown so well lately, AMD will not be far behind Intel very soon.</p><p>Last but not least, if I were to stick with Windows, I eventually would have to switch to Windows 11 — which gives me <em>chills</em> just how <em>buggy</em> it is! It feels like another Windows Vista “mess” in the making 👀 I truly hope Microsoft can do a better job and do the OS some justice. However, as of current, Windows 11 is not the <em>OS </em>for me.</p><p>Let’s start setting up our Apple Silicon machine 🍺</p><h3>Contents</h3><ul><li><a href="#955b">Xcode</a></li><li><a href="#53f3">Rosetta</a></li><li><a href="#07d0">Git Version Control</a></li><li><a href="#52dc">Homebrew</a></li><li><a href="#85d8">Node</a></li><li><a href="#2ae6">C# .NET and Java SE</a></li><li><a href="#9bd5">Code Editor and IDE</a></li><li><a href="#5943">Virtualisation: Docker</a></li><li><a href="#28de">Cloud CLI: AWS</a></li><li><a href="#2e98">Mobile Development</a></li><li><a href="#a71e">Creative Apps</a></li><li><a href="#7a62">Productivity Apps</a></li><li><a href="#3e64">Miscellaneous</a></li></ul><h3>Xcode</h3><p>Apple has provided us with a complete development environment called Xcode for developing native apps on macOS, iOS, watchOS, and tvOS. Nonetheless, this is not pre-installed on our Mac machine. To install the full Xcode application, you can <strong>go to the App Store &gt; search for </strong><a href="https://apps.apple.com/id/app/xcode/id497799835?mt=12"><strong>Xcode</strong></a><strong> by Apple</strong>.</p><p>If you are someone who does not develop software for an Apple device, you do not need the full Xcode application — it takes a lot of spaces. Although, I recommend you should still install the Xcode CLT (Command-Line Tool).</p><ol><li>Open up your Terminal.</li><li>Run command xcode-select — -install to install the Xcode CLT.</li><li>It should roughly take 8 minutes with 100Mbps internet speed to finish installing.</li><li>Verify the installation was successful by running command <br>xcode-select -p . This will return the path to the Xcode CLT.</li></ol><p>Xcode CLT also comes in-bundle with Git. Hence, you do not need to install Git separately. Verify that Git has also been installed by running command:</p><pre>% git --version<br>git version 2.32.1 (Apple Git-133)</pre><h3>Rosetta</h3><p>At some point in time, you will be prompted to install Rosetta, allowing some applications which is originally built for the Intel to work on the new Apple Silicon (M1).</p><p>For me the prompt to install Rosetta comes up as soon as I launch Xcode app. It might be different for you, yet the easiest way to get Rosetta ready is to proceed installing Rosetta when first prompted.</p><p>Alternatively, you can install Rosetta via Terminal:</p><pre>% sudo softwareupdate --install-rosetta --agree-to-license</pre><h3>Git Version Control</h3><p>You may choose to use Git via CLI or GUI.</p><p><strong>Unpopular opinion:</strong> There is no shame in using and preferring GUI over the CLI — use the option that gives you the highest comfort and productivity, whether that be CLI, GUI, or a mix of both!</p><p>In order to start connect to your remote Git servers and services, you will need SSH keys. If you are someone who are using the CLI to configure Git, then you will need to setup your SSH keys manually.</p><p>If you do not wish to setup your SSH keys manually, you may skip this step and go straight to <a href="#5270"><strong>Git GUI</strong></a><strong> </strong>section<strong>.</strong></p><h4>Manually Setup SSH Keys</h4><p>Follow the guideline on how to generate and add new SSH keys to your GitHub:</p><ol><li>Check for existing SSH keys <a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys">here</a>.</li><li>Generate new SSH keys <a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key">here</a> (if you do not already have one).</li><li>Add the new SSH keys to your GitHub account <a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key">here</a>.</li><li>Verify your SSH connection is working <a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection">here</a> .</li></ol><h4>Git GUI</h4><p>There are few GUI clients that you may choose to connect to your Git services:</p><ul><li><strong>GitHub Desktop </strong>(*Recommended)<br>The simplest option to connect to GitHub. It is perfect for students and beginner level of Git users who also happen to only have their code repositories hosted on GitHub. Download GitHub Desktop for Apple M1 Silicon <a href="https://central.github.com/deployments/desktop/desktop/latest/darwin-arm64">here</a>.</li><li><strong>Sourcetree</strong><br>Sourcetree is also fairly simple to use for beginners. It is great for Windows users needing Enterprise solution. Although what makes this GUI client unique is the fact that it is designed to integrate with the Atlassian ecosystem, including the BitBucket / JIRA for team, project, and code collaboration. Hence, it is a “no-brainer” option for professional who are already integrated deeply into the Atlassian system. Unfortunately, Sourcetree does not have native support of the Apple Silicon (M1 Chip). However, it will still work with Rosetta and MacOS Intel. Download Sourcetree for MacOS X <a href="https://product-downloads.atlassian.com/software/sourcetree/ga/Sourcetree_4.1.8_244.zip">here</a>.</li><li><strong>GitKraken</strong> (*Recommended)<br>In my personal opinion, GitKraken is the best option for any level of Git users, beginners and experienced. Unlike GitHub Desktop, GitKraken allows you to connect to various Git hosts, from GitHub, BitBucket, GitLab, to Azure DevOps. Hence, if you opt in for flexibility and various use cases, GitKraken is a great choice!</li></ul><p>Follow the guideline below to install and setup GitKraken on your Apple M1.</p><ol><li><em>Download GitKraken Client</em> for Mac Apple Silicon <a href="https://www.gitkraken.com/download/mac-apple-silicon">here</a>.</li><li>Follow the installation prompts. Once installation completes, launch the GitKraken app.</li><li><em>Create a GitKraken profile</em> (if you don’t already have one). You may choose to sign-up with one of the Git hosting account i.e. GitHub, BitBucket, but I recommend you to create a GitKraken account instead so that in the future you can integrate your GitKraken with various Git hosting services of your needs.</li><li>Once your profile is ready, go to <em>File Menu GitKraken &gt; Preferences</em>.</li><li>On navigation pane, go to <em>Integrations</em> &gt; choose the Git hosting services you like to connect.</li><li>For example, you may choose to <em>connect with GitHub</em>. Thereby, go to <em>Integrations &gt; GitHub &gt; Connect to GitHub</em>. Login to your GitHub account and allow access. Once your GitHub account is connected to GitKraken, choose the option to <strong>Generate SSH key and add to GitHub</strong>.</li></ol><figure><img alt="Using GitKraken to generate SSH key and add to GitHub" src="https://cdn-images-1.medium.com/max/1024/1*Np03W9LeZm0p2I8uLcEemQ.png" /><figcaption>Generate SSH key and add to GitHub</figcaption></figure><p>Verify that GitKraken manages has successfully managed your SSH keys by going to your GitHub account via the web browser and go to the <a href="https://github.com/settings/keys">Setting’s SSH and GPG keys</a>. You should see a new SSH key added by GitKraken — no need to setup your SSH key manually 😃</p><h3>Homebrew</h3><p>Homebrew is the go-to package manager for macOS 🍺</p><p>To install Homebrew on an Intel or Apple M1 machine, simply open your Terminal and run the following command:</p><pre>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</pre><p>If you are using the Mac Intel machine, then this is all you need to do! Your Homebrew should be ready to use.</p><p>Nonetheless, follow the next step if you are using the new M1 machine.</p><h4>Homebrew on Mac M1 (Apple silicon)</h4><p>With the release of Homebrew 3.0 in February 2021, it now supports the Apple M1 chip. However, on the M1 machine, Homebrew installs files into the /opt/homebrew/ folder — not part of the default shell $PATH. You will need to configure your shell environment so Homebrew’s packages can be found and used as priority over other pre-installed tools.</p><p>On your Terminal, run the following command to add Homebrew to your $PATH in /Users/[username]/.zprofile` and change the [username] with your home directory.</p><pre>echo &#39;eval &quot;$(/opt/homebrew/bin/brew shellenv)&quot;&#39; &gt;&gt; /Users/[username]/.zprofile</pre><p>Then run the next command:</p><pre>eval &quot;$(/opt/homebrew/bin/brew shellenv)&quot;</pre><p>Verify that Homebrew has been installed correctly:</p><pre>% brew doctor<br>Your system is ready to brew.</pre><h3>Node: NVM on Apple Silicon</h3><p>If you are someone who are doing a lot of Web Development, you will eventually need to install Node.</p><p>Instead of going to the Node.js website and download the latest LTS version, you should install NVM (Node Version Manager) for M1 Apple Silicon. NVM allows you to switch Node version depending on your project requirement without having to manually managing your Node version.</p><p>Apple Silicon is now fully supported starting with Node v16. Follow these steps to install NVM on Apple Silicon (M1 Chip):</p><ol><li>Open Terminal.</li><li>Navigate to your home directory cd ~ .</li><li>Create .zshrc file on home directory (if you don’t already have one) by running touch .zshrc .</li><li>Run the following command to start installing NVM via curl:</li></ol><pre>curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash</pre><p>5. Restart your Terminal so NVM is loaded properly.</p><p>6. Re-launch your Terminal and verify that NVM has been installed by running command:</p><pre>% nvm --version<br>0.39.0</pre><p>7. Now that you have NVM installed, you can proceed to install the Node version you need. For example: Installing the latest Node LTS (Long-Term Support) version, run the following command:</p><pre>% nvm install --lts</pre><p>8. Verify that NVM has successfully installed the Node version you need by running command:</p><pre>% node -v<br>v16.15.1</pre><pre>% npm -v<br>8.11.0</pre><p>If <strong><em>npm</em></strong> is your go-to Javascript package manager, then feel free to skip to the next section <strong>Framework</strong>.</p><p>Alternatively, if you are someone like me who are using <strong><em>yarn</em></strong>, you may also choose to install yarn globally via Homebrew with the following command:</p><pre>% brew install yarn</pre><pre>% yarn --version</pre><h3>C# .NET and Java SE</h3><p>I am someone who works with .NET framework and Java SE Development Kit. If you do not use any of these, please feel free to skip this guideline and continue forward to the next section <a href="#9bd5"><strong>Code</strong> <strong>Editor / IDE</strong></a>.</p><h4>.NET 6.0</h4><p>Microsoft has release the .NET 6.0 in November 2021.</p><p>.NET 6.0 is the latest LTS (Long-Term Support) release and will be supported for the next three years.</p><p>If you have not been keeping up with the latest .NET trend, you may not be aware that Microsoft has release .NET Core which is the new version of .NET framework — cross-platform, high performing, unified, fast, lightweight, open-source framework for building modern Web, Mobile, Desktop apps.</p><p>To install .NET 6.0:</p><ol><li>Download .NET 6.0 LTS <a href="https://dotnet.microsoft.com/en-us/download">here</a> and choose <em>macOS &gt; download .NET SDK Arm64.</em></li><li>Open the installer and follow the prompt.</li><li>Once installation completes, open up your Terminal and verify that .NET SDK has been installed correctly by running the following commands:</li></ol><pre># Check version, should be LTS 6.0.301<br>% dotnet --version</pre><pre># Check SDK versions<br>% dotnet --list-sdks</pre><pre># Check Runtime versions<br>% dotnet --list-runtimes</pre><h4>Java</h4><p>Java 17 is the latest LTS (Long-Term Support) release for the Java SE platform and will receive updates until at least September 2024.</p><p>To install Java 17:</p><ol><li>Go to Java Downloads page <a href="https://www.oracle.com/java/technologies/downloads/#java17">here</a> .</li><li>Select Java 17.</li><li>Choose <em>Java SE Development Kit 17.0.3.1 downloads &gt; macOS &gt; Arm 64 DMG Installer.</em></li><li>Open the installer file and follow the prompt.</li><li>Once installation completes, open up your terminal to verify Java 17 has been installed correctly by running command:</li></ol><pre>% java --version<br>java 17.0.3.1 2022-04-22 LTS<br>Java(TM) SE Runtime Environment (build 17.0.3.1+2-LTS-6)<br>Java HotSpot(TM) 64-Bit Server VM (build 17.0.3.1+2-LTS-6, mixed mode, sharing)</pre><h3>Code Editor and IDE</h3><p>There are many Code Editors and IDEs available in the market. All of these products come with both advantages and disadvantages.</p><p>For the majority of my use case, I am installing these code editors and IDEs:</p><h4>Visual Studio Code (VSCode)</h4><p>VSCode may not be an IDE, but it is one of the best (if not THE BEST) code-editor developed by Microsoft for Windows, Linux and macOS machines.</p><p>Free, yet powerful!</p><p>Download Visual Studio Code for Mac Apple Silicon <a href="https://code.visualstudio.com/download">here</a>.</p><p>Follow the installation prompt and once completed, launch VSCode!</p><p>The benefit of VSCode lays upon its powerful extensions. Here are some of the VSCode extensions that I often use for my workflow:</p><ul><li><a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag">Auto Close Tag</a> by Jun Han</li><li><a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-complete-tag">Auto Complete Tag</a> by Jun Han</li><li><a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag">Auto Rename Tag</a> by Jun Han</li><li><a href="https://marketplace.visualstudio.com/items?itemName=mgmcdermott.vscode-language-babel">Babel Javascript</a> by Michael McDermott</li><li><a href="https://marketplace.visualstudio.com/items?itemName=pranaygp.vscode-css-peek">CSS Peek</a> by Pranay Prakash</li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker">Docker</a> by Microsoft Name: Docker</li><li><a href="https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv">DotENV</a> by mikestead Name: DotENV</li><li><a href="https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets">ES7+React/Redux/React-Native snippets</a> by dsznajder</li><li><a href="https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint">ESLint</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=drKnoxy.eslint-disable-snippets">eslint-disable-snippets</a> by Adam Knox</li><li><a href="https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode">IntelliCode</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion">Intellisense for CSS class names in HTML</a> by Zignd</li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-next">JavaScript and TypeScript Nightly</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=PulkitGangwar.nextjs-snippets">Next.js snippets</a> by Pulkit Gangwar</li><li><a href="https://marketplace.visualstudio.com/items?itemName=eg2.vscode-npm-script">npm</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=christian-kohler.npm-intellisense">npm Intellisense</a> by Christian Kohler</li><li><a href="https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense">Path Intellisense</a> by Christian Kohler</li><li><a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode">Prettier</a> by Prettier</li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance">Pylance</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-python.python">Python</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=msjsdiag.vscode-react-native">React Native Tools</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers">Remote — Containers</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh">Remote — SSH</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh-edit">Remote — SSH: Editing Configuration Files</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack">Remote Development</a> by Microsoft</li><li><a href="https://marketplace.visualstudio.com/items?itemName=cssho.vscode-svgviewer">SVG Viewer</a> by cssho</li><li><a href="https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss">Tailwind CSS IntelliSense</a> by Tailwind Labs</li><li><a href="https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml">YAML</a> by Red Hat</li></ul><h4>IntelliJ</h4><p>I use IntelliJ as IDE to develop software in Java and Kotlin.</p><p>There is a free community edition of IntelliJ — perfect for students. Although, you will need the Ultimate version to build Web and Enterprise solutions. Unfortunately, the Ultimate version is not free. However, there is a free 30-day trial to try the product. Nonetheless, your employer should provide you with access to InteliiJ Ultimate as required.</p><p>Alternatively, if you are a student or teacher, you are eligible for JetBrains Free Educational License (<a href="https://www.jetbrains.com/community/education/#students">Read More</a>).</p><p>Download the free <em>InteliiJ community edition for Apple Silicon</em> <a href="https://www.jetbrains.com/idea/download/download-thanks.html?platform=macM1&amp;code=IIC">here</a>.</p><p>Download <em>InteliiJ Ultimate for Apple Silicon</em> <a href="https://www.jetbrains.com/idea/download/download-thanks.html?platform=macM1">here</a>.</p><h4>Rider (Alternative to Windows Visual Studio)</h4><p>In my opinion, Visual Studio (Windows) is still the best IDE for .NET development. Although, Microsoft offers Visual Studio for Mac — which also works with the Apple Silicon — the performance is yet to catch up with the Windows version.</p><p>Recently, Microsoft also announced the preview version of Visual Studio on ARM64 (<a href="https://docs.microsoft.com/en-us/visualstudio/install/visual-studio-on-arm-devices?view=vs-2022">Read More</a>). This is an amazing news that soon we hopefully get to enjoy the perks of Visual Studio x64 (Windows) on an ARM powered machine, like the M1.</p><p>Fortunately, the next best alternative for macOS user currently doing .NET development is JetBrains’ Rider. It starts and compiles code faster than Visual Studio for Mac. It also runs well on Windows, macOS, and Linux!</p><p>Unfortunately, there is no free community edition of Rider. But you can get 30-days trial. As always, if you are a student or teacher, you are eligible for JetBrains Free Educational License (<a href="https://www.jetbrains.com/community/education/#students">Read More</a>), which also includes Rider.</p><p>Download <em>Rider for Apple Silicon</em> <a href="https://www.jetbrains.com/rider/download/download-thanks.html?platform=macM1">here</a>.</p><h4>PhpStorm</h4><p>If you are also working with PHP — which sometimes I do as I work with WordPress development — you may want to consider to install JetBrains’ PhpStorm.</p><p>You can also use Visual Studio Code for any development work using PHP. However, if you love to have IDE power, then PhpStorm is your next best bet!</p><p>Download <em>PhpStorm for Apple Silicon</em> <a href="https://www.jetbrains.com/phpstorm/download/download-thanks.html?platform=macM1">here</a>.</p><h4>DataGrip</h4><p>DataGrip is JetBrains database IDE. It is suited for professional SQL developers. It works with many databases, including enterprise solution such as PostgreSQL, MySQL, SQL Server, Oracle, Azure, Snowflake, MongoDB, H2.</p><p>Download <em>DataGrip for Apple Silicon</em> <a href="https://www.jetbrains.com/datagrip/download/download-thanks.html?platform=macM1">here</a>.</p><h4>Postman</h4><p>Postman is an API platform for <strong>building and using APIs — create better APIs faster.</strong></p><p>Download <em>Postman for Apple Silicon</em> <a href="https://dl.pstmn.io/download/latest/osx_arm64">here</a>.</p><h3>Virtualisation: Docker</h3><p>Download the Docker Desktop <a href="https://docs.docker.com/desktop/mac/install/">here</a> and choose the Mac with Apple Chip option. Follow the installation prompt, and once it is completed, start the Docker desktop.</p><p>You should now be able to use Docker for virtualisation and containerisation!</p><h3>Cloud Services CLI: AWS, Azure, Google Cloud</h3><p>With Cloud services are becoming mandatory for our workflow as a Software Engineer, there are a few Cloud services available and most commonly used by the community and enterprises. These Cloud platforms include:</p><ul><li>Microsoft Azure with Storage Explorer (<a href="https://docs.microsoft.com/en-us/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=macos#prerequisites">Read More</a>)</li><li>Amazon AWS (Amazon Web Services) (<a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html">Read More</a>)</li><li>Google Cloud with its Cloud SDK (<a href="https://cloud.google.com/sdk/docs/install">Read More</a>)</li></ul><p>I mainly use AWS at work simply due to the fact it is the most commonly used cloud-based services by the companies I have worked with thus far. Nonetheless, I also often use Google Cloud SDK for my personal projects as I find it providing affordable option suitable for learning and building smaller — fun apps.</p><p>Unfortunately, I believe Azure Storage Explorer is not yet available on Apple M1 Chip. Perhaps, in the future — after this guide has been released — it might be. However, currently for those who are using Azure Storage Explorer, you will need to stay with Windows or Apple Intel based Chip. If Azure is the cloud-provider of your choice, feel free to explore the Azure Storage Explorer setup guide by clicking the link <a href="https://docs.microsoft.com/en-us/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=macos#prerequisites">here</a>.</p><p>For the purpose of this guideline, I am focusing on how to setup <strong>AWS CLI</strong> on Apple Silicon.</p><h4>AWS CLI — Setup AWS and IAM Accounts</h4><p>Feel free to skip to <a href="#7528"><strong>AWS CLI — Configuration</strong></a><strong>, </strong>this step if you already have AWS and IAM accounts ready.</p><p>AWS CLI is an open source tool which enables us to work with AWS services through the command-line shell — bash, zsh, tcsh, Windows command prompt, Powershell, or remotely via PuTTY and SSH.</p><p>To access AWS CLI, you will need an AWS account, IAM credentials, and IAM key-pair. If you already have your account setup, you may jump straight to <strong>AWS CLI — Configuration</strong>.</p><p>Nonetheless, if you do not have the accounts required, follow the steps below to create your AWS and IAM accounts.</p><ol><li><strong>Sign-up for AWS account</strong> <a href="https://portal.aws.amazon.com/billing/signup">here</a> and simply follow the sign-up instructions. Once you have successfully signed up for an AWS account, you should be able to access your AWS Management Console.</li><li>Sign-in to AWS <a href="https://signin.aws.amazon.com/signin?redirect_uri=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2Fhome%3FhashArgs%3D%2523%26isauthcode%3Dtrue%26nc2%3Dh_ct%26src%3Dheader-signin%26state%3DhashArgsFromTB_us-west-2_35337b843e8d7f40&amp;client_id=arn%3Aaws%3Asignin%3A%3A%3Aconsole%2Fcanvas&amp;forceMobileApp=0&amp;code_challenge=AamhY6Oo66qEfJsercI9txbVL-mN-S3HSDpONANHR_A&amp;code_challenge_method=SHA-256">here</a> with your newly created <strong>root user</strong> credentials.</li><li>Go to <a href="https://console.aws.amazon.com/iam/">IAM Console</a> to create IAM user account. AWS strongly recommend that you adhere to the best practice of using the <strong>Administrator</strong> IAM user that follows and securely lock away the root user credentials.</li><li>In navigation pane, look for <strong>Access management &gt; User </strong>and select <strong>Add Users</strong>.</li><li>Enter <strong>User Name</strong> as <strong>Administrator </strong>.</li><li>Under <strong>Select AWS access type</strong>, select AWS credential type checkbox of <strong>Password — AWS Management Console access </strong>and choose <strong>custom password</strong> for console password.</li><li>Enter your custom password.</li><li>Leave the checkbox ticked for the <strong>Require password reset</strong>. By default, AWS requires user to create new password upon first sign-in.</li><li>Once you have filled in your IAM custom password, continue with <strong>Next: Permission</strong>.</li><li>Next section will ask you to <strong>Set Permission</strong>. Select <strong>Add user to group &gt; Create group</strong>.</li><li>Enter <strong>Group name</strong> as <strong>Administrators </strong>.</li><li>Click on <strong>Filter policies &gt; select AWS managed — job function</strong>.</li><li>From the filtered policy list, select the <strong>AdministratorAccess </strong>and continue to the next section by clicking <strong>Create group</strong>.</li><li>Upon successfully creating the Administrators group, you should be redirected back to the list of groups.</li><li>Tick the Administrators group and continue through <strong>Next: Tag</strong>.</li><li>You may skip the <strong>Add tags</strong> section (<a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Read More</a> about Tagging IAM entities) and simply continue to the next section with <strong>Next: Review</strong>.</li><li>Review of your entries. Once you are happy with everything, you can finalise the process by clicking <strong>Create user</strong>.</li><li>You will be asked to re-sign in, but this time with your IAM account.</li><li>Enter your username as Administrator and the custom password you have set in step 7.</li><li>You then will be asked to create a new password, simply follow the instruction and make sure you save your new IAM password as this will be the password you will be using going forward to login.</li></ol><figure><img alt="IAM User account" src="https://cdn-images-1.medium.com/max/1024/1*_VSg9pLD2-nRVi0kBFcfrQ.png" /><figcaption>IAM User Account — Add New User</figcaption></figure><figure><img alt="IAM Add New User" src="https://cdn-images-1.medium.com/max/1024/1*wljgjrGj2jKrIKKUnXwiQA.png" /><figcaption>IAM Create Username and Custom Password</figcaption></figure><figure><img alt="IAM Create Group" src="https://cdn-images-1.medium.com/max/1024/1*KNV3h7j7ftmN8BxTYKgVEQ.png" /><figcaption>IAM Create Administrators Group with AdministratorAccess Policy</figcaption></figure><figure><img alt="Finalise add IAM User Account" src="https://cdn-images-1.medium.com/max/1024/1*YM4zXzetQ5WquJ3o3P-hTQ.png" /><figcaption>IAM Finalising Adding New User to Administrators Group</figcaption></figure><p>Now that you have both AWS root and IAM account, it is time to create AWS access key ID and secret access key to have the <strong>CLI access</strong>.</p><p>Follow these steps to create access keys for your IAM user account:</p><ol><li>Sign-in to IAM Console with your IAM credentials</li><li>Through navigation pane, go to <strong>Users &gt; Select the user name </strong>whose access key you wish to create.</li><li>You will be directed to the summary details of the user you have selected. On the user menu tab, select the <strong>Security credentials </strong>tab.</li><li>Under <strong>Access keys</strong> section&gt; choose <strong>Create access key</strong> to create new access key for the selected user.</li><li><strong>WARNING!</strong> This is the only time that you will be able to view or download the <strong>Secret Access Key</strong> — Make sure you make copy the access key or download the csv file, then store it in a secure location i.e. 1Password.</li><li>Once you have safely stored the Secret Access Key, you may close the dialog and your new Access Key ID should be ready to use!</li></ol><h4>AWS CLI — Configuration</h4><p>Now that you have setup your AWS account, IAM credentials, and IAM key-pair, you can finally install or update the AWS CLI.</p><p>There are a couple of options to install AWS CLI on macOS. I recommend to simply use the most straight-forward option: GUI installer. You may download the installer file <a href="https://awscli.amazonaws.com/AWSCLIV2.pkg">here</a>.</p><p>Run the installer file and follow the on-screen instructions.</p><p>You may opt to install either:</p><ol><li><strong>For</strong> <strong>all users on your computer</strong></li><li><strong>For only the current active user</strong></li></ol><p>I generally choose <em>Option 1</em> as I am not sharing my machine with anyone else. For the sake of simplicity I recommend you to <em>install </em><strong><em>for all users</em></strong> as the installer will automatically create a symlink at /usr/local/bin/aws that links to the main program in the installation folder you chose (less hassle).</p><figure><img alt="Installing AWS CLI on macOS" src="https://cdn-images-1.medium.com/max/618/1*N26kB1Zg18XJMIZMhWSC8g.png" /><figcaption>Install AWS Command Line Interface on macOS / M1</figcaption></figure><p>Once the installation completed, verify that you can run AWS command by opening up your terminal and type in the following commands:</p><pre>% which aws<br>/usr/local/bin/aws</pre><pre>% aws --version<br>aws-cli/2.7.11 Python/3.9.11 Darwin/21.5.0 exe/x86_64 prompt/off</pre><p>The next step will be to configure the AWS CLI so that it is finally ready to use!</p><p>Run the following command aws configure which will trigger AWS CLI to ask you for the following information:</p><ul><li>Access Key ID</li><li>Secret Access Key</li><li>AWS Region</li><li>Output Format</li></ul><p>The following is the sample values. Replace the values with your credentials and required setting.</p><pre>$ <strong>aws configure</strong> <br>AWS Access Key ID [None]:<strong><em>EXAMPLEACCESSKEYID</em></strong> <br>AWS Secret Access Key [None]:<strong><em>EXAMPLESECRETACCESS-KEY</em></strong> <br>Default region name [None]: <strong><em>ap-southeast-3</em></strong> <br>Default output format [None]: <strong><em>json</em></strong></pre><h3>Mobile Development: React Native, Flutter</h3><h4>React Native</h4><p>If you have been following this guide, you should already have some of the pre-requisites tools, including Xcode, XCode CLT, Homebrew, Node, VSCode, required to work with React Native.</p><p>In addition, I also recommend to install <a href="https://facebook.github.io/watchman/docs/install.html">Watchman</a> — a tool developed by Facebook to automatically re-compile and re-run your project whenever there are changes to your files.</p><p>Install Watchman on macOS via Homebrew:</p><pre>% brew update</pre><pre>% brew install watchman</pre><p>Next, you might need to install / update Ruby through Homebrew:</p><pre>% brew install ruby</pre><p>This step is required for you to install CocoaPods, which is a package manager for Swift and Objective-C.</p><p>Run these commands — one after another — to install ffi &amp;&amp; cocoapods properly on M1 machine.</p><pre>% brew install cocoapods<br>% sudo arch -x86_64 gem install ffi</pre><p>Verify that the installation is complete by running % pod --version . At the time this guideline is created, you should see a pod version of 1.11.3 .</p><p>Next, let’s setup the iOS simulator on XCode:</p><ol><li>Launch XCode App.</li><li>On menu bar, navigate to <em>XCode &gt; Preferences &gt; Components tab.</em></li><li>Here, you should see a list of available simulators that you can use to test your iOS app. Pick any simulators that suit your need. For this demo, I simply click the download icon for the latest simulator — iOS 15.4 Simulator.</li><li>XCode should prompt you to enter your password to start the installation.</li><li>It may take a moment — depending on your internet speed — wait until the installation is complete.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCvllxsCyC64Gx3nALlj7w.png" /><figcaption>Installing iOS Simulator</figcaption></figure><p>Lastly, let’s create a sample React-Native project to verify that everything is working as expected! Alternatively, you may also choose to test with one of your React-Native project 😄</p><p>Navigate to the directory where you wish to create the React-Native project, then run the following installation command:</p><pre>% npx react-native init HelloReactNative</pre><p>If this is your first-time installing React-Native, then you should also be prompted that you will need to install the react-native package. Proceed with Y when prompted 👍 It may take awhile, but by the end of it you should see all of these are completed successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kTrLAOh4kAd2h-bXyY2IDQ.png" /><figcaption>Welcome to React Native!</figcaption></figure><p>A common issue other people have encountered is pod failed to be installed , which appears to be an issue with Ruby ffi . If you have found yourself in similar issue, then navigate to your project directory i.e.cd sample-react-native/ios and run this command to install pod.</p><pre>% arch -x86_64 pod install</pre><p>Now that we have our sample project ready for testing, let’s try running the React-Native app on an iOS simulator!</p><ol><li>Launch a terminal.</li><li>Navigate to your react-native project directory cd HelloReactNative .</li><li>Run command npm start — this should start Metro.</li><li>Open up another terminal.</li><li>Run command to start on simulator npm run ios .</li><li>Wait for the app finishes building!</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i8eaKkf0AC7GtcLgJsoFmQ.png" /><figcaption>Successfully run react-native app on iOS Simulator</figcaption></figure><p>Congratulations your React-Native setup is now ready! 🚀</p><h4>Flutter</h4><p>Another alternative to React-Native is Flutter mobile development kit.</p><p>As this guideline was being written, developing with Flutter on Apple Silicon still requires Rosetta 2 translation. If you have missed installing Rosetta on first prompt, make sure you run this following command before proceeding with Flutter:</p><pre>% sudo softwareupdate --install-rosetta --agree-to-license</pre><p>Go to <a href="https://docs.flutter.dev/get-started/install/macos#get-sdk">Flutter Dev</a> to start downloading the latest stable release of Flutter SDK for Apple Silicon.</p><ol><li>Once the ZIP file is finished downloading, open up your Terminal.</li><li>Extract the ZIP file into your $HOME directory cd ~ by running this command (It is assumed that your <strong>flutter_macos_3.0.3-stable.zip</strong> file is downloaded in the Downloads folder):<br>unzip ~/Downloads/flutter_macos_3.0.3-stable.zip</li></ol><p>Next, you will need to update your $PATH so you can run flutter commands on any Terminal session. Although, first check which shell you are currently using by running % echo $SHELL .</p><p>For my machine, I am using the Z-shell or zsh , hence you need to edit the configuration file named .zshrc .</p><p>Meanwhile, if you using bash , then you will need to edit .bash_profile or .bashrc .</p><p>To start editing the configuration file of Z-shell, run nano .zshrc and dump the following line to the file:</p><pre>export PATH=&quot;$PATH:$HOME/flutter/bin&quot;</pre><p>Save and close the editor. Then, restart or open a new Terminal window to automatically source the file.</p><p>Verify that Flutter has now been added to your $PATH by running:</p><pre>% echo $PATH<br>% which flutter</pre><p>Next, check that you have all the platform dependencies setup and ready-to-go.</p><p><strong>For iOS:</strong> You will need to install Xcode, CocoaPods, and iOS emulator (If you have been following this guideline, you should already have these ready). Otherwise, follow this steps to setup iOS platform.</p><p>Install / update Ruby through Homebrew:</p><pre>% brew install ruby</pre><p>This step is required for you to install CocoaPods, which is a package manager for Swift and Objective-C.</p><p>Run these commands — one after another — to install ffi &amp;&amp; cocoapods properly on M1 machine.</p><pre>% brew install cocoapods<br>% sudo arch -x86_64 gem install ffi</pre><p>Verify that the installation is complete by running % pod --version . At the time this guideline is created, you should see a pod version of 1.11.3 .</p><p><strong>For Android:</strong> You will need to install Android Studio <a href="https://developer.android.com/studio">here</a> &gt; <em>Agree to the Terms and Conditions</em> &gt; Select Android Studio for <em>Mac with Apple Chip.</em></p><p>Once you finished downloading Android Studio, launch the App so the <em>Android Studio Setup Wizard</em> can start. The setup wizard will install the necessary tools for Android development, including latest Android SDK and Android emulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LyQz5aRiz2KI7Okm__V-Bw.png" /><figcaption>Android Studio Setup Wizard</figcaption></figure><p>Accept all the License Agreement and the required components should be ready for download.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YEohPPgsi_n1R_rnLPOXmg.png" /><figcaption>Android Studio Setup Wizard Downloading Components</figcaption></figure><p>Once Android Studio Setup Wizard is done, you should be directed to Welcome to Android Studio.</p><p>From here, the next step is to:</p><p><em>Click More Actions &gt; SDK Manager &gt; select SDK tool tab &gt; install Android SDK Command-line Tools (latest) &gt; Click Apply &gt; SDK Component Installer should start!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*is_Q4qf5y6xz1KZRHdK0Yg.png" /><figcaption>More Actions &gt; SDK Manager</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sbK8vm1Dl2q8_bFmcFRI8g.png" /><figcaption>Install Android SDK Command-line Tools (latest)</figcaption></figure><p>Now, open up your Terminal and run flutter doctor to verify complete installation of required modules for Flutter.</p><p>At this point, you might still see issue of “Android licenses have not been accepted”. To fix this, simply run flutter doctor --android-licenses and just keep on pressing Y to accept all pending licenses.</p><p>Re-running flutter doctor should no longer give you any issues.</p><p>Lastly, if you do not wish to use Android Studio and instead keep using Visual Studio Code, then you should install the following Flutter extensions:</p><ul><li><a href="https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter">Flutter</a> by Dart-Code</li><li><a href="https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code">Dart</a> by Dart-Code (should be automatically installed in-bundle with Flutter)</li></ul><p>You are all-set for Flutter development! 🚀</p><h3>Creative Apps</h3><p>Feel free to skip this part if this is irrelevant for your setup.</p><h4>Setup Audio Interface with GarageBand</h4><p>Although I might be a full-time Software Engineer, I still enjoy recording and playing music on the side 🎵</p><p>Previously on Windows, I was using Ableton Live as my digital audio workstation (DAW). I do not have any problem with Ableton, in fact, it is still one of the best DAWs available in the market for my needs.</p><p>However, since GarageBand comes with Apple by default, I thought I would give it a try. Also, unlike the pricey-Ableton, GarageBand is free!</p><p>I am using Focusrite Scarlett as my audio interface. You might have different brand, but the steps to connect to GarageBand should be similar.</p><ol><li>Launch GarageBand app.</li><li>Connect your audio interface to your Mac.</li><li>As you connect, GarageBand should pop-up an alert as to whether you’d like to use the connected audio-interface. Make sure you allow this.</li><li>Alternatively, you can also go to <em>GarageBand &gt; Preferences &gt; Audio/MIDI, </em>then select the connected audio-interface as the input and output devices.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SbLV2oJ1Btsm9KvBD2tV-w.png" /><figcaption>GarageBand</figcaption></figure><p>Likewise, if you have a MIDI controller you want to connect, simply go to <em>GarageBand &gt; Preferences &gt; Audio/MIDI </em>and select from the MIDI controller you want to use.</p><p>If you are using Focusrite Scarlett, you should also login to your Focusrite account and download the Focusrite Control app for Mac <a href="https://fael-downloads-prod.focusrite.com/customer/prod/downloads/Focusrite%20Control%20-%203.10.0.1981.dmg">here</a>.</p><p>Enjoy recording 🎙❤️</p><h4>Adobe Creative Cloud</h4><p>I often still use Adobe for creative work.</p><ul><li><strong>Xd</strong> — UX, Web Design related tasks (alternative to Figma)</li><li><strong>Photoshop</strong> — Image, Logo, Graphic Design editing</li><li><strong>Lightroom</strong> — Photo, Social Media editing</li><li><strong>Premiere Pro</strong> — Video editing</li></ul><p>Download Adobe Creative Cloud All Apps <a href="https://creativecloud.adobe.com/apps/download/creative-cloud">here</a>.</p><p>There are few pricing plans available — check out their best offer <a href="https://www.adobe.com/sea/creativecloud/plans.html?promoid=5WYL7ZTK&amp;mv=other">here</a>.</p><p>You do not have to subscribe to all Adobe products and if it is for client-work, make sure to ask your employer for reimbursement.</p><h3>Productivity Apps</h3><p>I also installed the following apps which has helped my workflow and increased my productivity.</p><ul><li>Chrome</li><li>Notion</li><li>1Password</li><li>Zoom</li><li>Microsoft Teams</li><li>Slack</li><li>WhatsApp</li><li>Signal</li><li>Discord</li><li>Foxit PDF</li></ul><h3>Misc: Make Use of Bookmarks</h3><p>Bookmarking is another habit-tool that have helped me navigate through work / project related files more efficiently and effectively. If you haven’t already been doing this, I suggest you should try now 🙌</p><p>By default, I have bookmarked the following sites:</p><ul><li>YouTube</li><li>Gmail</li><li>Google Drive</li><li>Google Calendar</li><li>Google Translate</li><li>Github</li><li>Figma</li><li>Miro</li><li>Netlify</li><li>Vercel</li><li>Medium</li><li>Udemy, Pluralsight</li></ul><p>Hope this helps!</p><h3>Final Thoughts</h3><p>That is all I want to share for now!</p><p>Thank you for taking the time to read through this guideline. I hope this article may help you setting up your new M1 machine. My journey on Apple Silicon has also just begun and I have been enjoying it so far!</p><p>Kindly drop the article some comments for future discoveries and for any guideline that might require update ❤️</p><p>Stay tuned for more future articles!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a7808016e92" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>