<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alex Cocan</title>
    <description>The latest articles on DEV Community by Alex Cocan (@furbo1).</description>
    <link>https://dev.to/furbo1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F398116%2F1a92e9c0-d79d-423b-87b7-ccfd8bb3bbb6.png</url>
      <title>DEV Community: Alex Cocan</title>
      <link>https://dev.to/furbo1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/furbo1"/>
    <language>en</language>
    <item>
      <title>Create a fullstack* Angular App with one line of code</title>
      <dc:creator>Alex Cocan</dc:creator>
      <pubDate>Thu, 15 Feb 2024 20:02:27 +0000</pubDate>
      <link>https://dev.to/furbo1/accelerate-angular-app-development-with-create-angular-auth-nav-50im</link>
      <guid>https://dev.to/furbo1/accelerate-angular-app-development-with-create-angular-auth-nav-50im</guid>
      <description>&lt;p&gt;Introducing &lt;a href="https://www.npmjs.com/package/create-angular-auth-nav" rel="noopener noreferrer"&gt;create-angular-auth-nav&lt;/a&gt;, a groundbreaking CLI tool designed to streamline the process of setting up new Angular projects with authentication and navigation features right out of the box. This package is a boon for developers looking to fast-track their Angular application development without compromising on quality or scalability.&lt;/p&gt;

&lt;p&gt;With &lt;a href="https://www.npmjs.com/package/create-angular-auth-nav" rel="noopener noreferrer"&gt;create-angular-auth-nav&lt;/a&gt;, jumpstart your Angular application equipped with a robust authentication system powered by Node.js, Express, Passport.js, and Bcrypt. Tailored to save you hours of coding and configuration, this tool scaffolds a project where you can immediately start adding your unique business logic and UI components.&lt;/p&gt;

&lt;p&gt;Why create-angular-auth-nav?&lt;br&gt;
Rapid Setup: &lt;br&gt;
Generate a fully operational Angular project with pre-configured authentication and routing in mere minutes.&lt;/p&gt;

&lt;p&gt;Secure Authentication: &lt;br&gt;
Leverages Passport.js and Bcrypt for a secure authentication setup, ensuring your application's security from the get-go.&lt;/p&gt;

&lt;p&gt;Customizable Template: &lt;br&gt;
While offering a comprehensive starter template, it allows for easy customization to suit your specific project needs.&lt;/p&gt;

&lt;p&gt;Enhanced Productivity: &lt;br&gt;
Frees developers from the repetitive setup tasks, allowing them to focus on feature development and user experience enhancements.&lt;/p&gt;

&lt;p&gt;Getting Started&lt;/p&gt;

&lt;p&gt;To kick off your Angular project, simply run:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx create-angular-auth-nav&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;This command creates a new directory with all the necessary setup for authentication and navigation. Follow the on-screen instructions to navigate into your project directory and launch the development server.&lt;/p&gt;

&lt;p&gt;Embrace the Future of Angular Development&lt;/p&gt;

&lt;p&gt;Embrace &lt;a href="https://www.npmjs.com/package/create-angular-auth-nav" rel="noopener noreferrer"&gt;create-angular-auth-nav&lt;/a&gt; for your next Angular project and set a new standard for rapid development and high-quality code. Visit the npm package page for detailed documentation and advanced customization options.&lt;/p&gt;

&lt;p&gt;App preview: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fregister.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fregister.jpg" title="Register component" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Flogin.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Flogin.jpg" title="Login component" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fhome.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fhome.jpg" title="Home component" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fabout.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fabout.jpg" title="About component" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fcontact.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fcontact.jpg" title="Contact component" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Disclaimer&lt;/p&gt;

&lt;p&gt;This cli project &lt;a href="https://www.npmjs.com/package/create-angular-auth-nav" rel="noopener noreferrer"&gt;create-angular-auth-nav&lt;/a&gt; is provided "as is", without warranty of any kind. The creators of this package shall not be held liable for any claims, damages, or other liabilities arising from its use. Your use of this tool constitutes acceptance of these terms.&lt;/p&gt;

&lt;p&gt;Elevate your Angular development workflow with &lt;a href="https://www.npmjs.com/package/create-angular-auth-nav" rel="noopener noreferrer"&gt;create-angular-auth-nav&lt;/a&gt; today and experience unparalleled efficiency in bringing your applications to life.&lt;/p&gt;

&lt;p&gt;*Database is missing from this app,as that depends on user's needs.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>frontend</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Create a fullstack* React App with one line of code</title>
      <dc:creator>Alex Cocan</dc:creator>
      <pubDate>Thu, 15 Feb 2024 19:39:56 +0000</pubDate>
      <link>https://dev.to/furbo1/streamlining-web-development-with-create-react-auth-nav-a-productivity-powerhouse-3ome</link>
      <guid>https://dev.to/furbo1/streamlining-web-development-with-create-react-auth-nav-a-productivity-powerhouse-3ome</guid>
      <description>&lt;p&gt;In today's fast-paced development world, finding tools that streamline the creation process is like striking gold. Enter &lt;a href="https://www.npmjs.com/package/create-react-auth-nav" rel="noopener noreferrer"&gt;create-react-auth-nav&lt;/a&gt;, a CLI tool that scaffolds a full-stack application with React, Node.js, Express, and Passport.js. This package is a treasure trove for developers looking to jumpstart their projects with authentication and navigation features already baked in. It not only speeds up the initial setup but also incorporates best practices for security with Bcrypt for password hashing.&lt;/p&gt;

&lt;p&gt;What makes &lt;a href="https://www.npmjs.com/package/create-react-auth-nav" rel="noopener noreferrer"&gt;create-react-auth-nav&lt;/a&gt; particularly valuable is its focus on productivity. By eliminating the boilerplate setup, developers can dive straight into the heart of their projects, focusing on unique features rather than wrestling with repetitive setup tasks. The package is designed to be intuitive, ensuring a smooth workflow from the get-go.&lt;/p&gt;

&lt;p&gt;For those eager to explore this tool and how it can enhance your development process, check out &lt;a href="https://www.npmjs.com/package/create-react-auth-nav" rel="noopener noreferrer"&gt;create-react-auth-nav&lt;/a&gt; on npm. It's a straightforward way to elevate your projects, ensuring you're building on a solid, secure foundation while saving precious time. Embrace the future of development with &lt;a href="https://www.npmjs.com/package/create-react-auth-nav" rel="noopener noreferrer"&gt;create-react-auth-nav&lt;/a&gt; and watch your productivity soar.&lt;/p&gt;

&lt;p&gt;App preview: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fregister.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fregister.jpg" title="Register component" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Flogin.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Flogin.jpg" title="Login component" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fhome.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fhome.jpg" title="Home component" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fabout.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fabout.jpg" title="About component" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fcontact.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Ffurbo1%2Fcreate-react-register-login%2Fraw%2Fmaster%2Fassets%2Fcontact.jpg" title="Contact component" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Disclaimer:&lt;br&gt;
This project, &lt;a href="https://www.npmjs.com/package/create-react-auth-nav" rel="noopener noreferrer"&gt;create-react-auth-nav&lt;/a&gt;, is provided as-is without any warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. The use of &lt;a href="https://www.npmjs.com/package/create-react-auth-nav" rel="noopener noreferrer"&gt;create-react-auth-nav&lt;/a&gt; is entirely at your own risk. The author(s) or contributors shall not be liable for any damages, including but not limited to direct, indirect, incidental, special, consequential, or punitive damages arising out of or in connection with your access to, use of, or reliance on this project. By using &lt;a href="https://www.npmjs.com/package/create-react-auth-nav" rel="noopener noreferrer"&gt;create-react-auth-nav&lt;/a&gt;, you agree to this disclaimer and acknowledge that the project is offered freely for use, modification, and distribution under its specified license, without any obligation for support, maintenance, or updates.&lt;/p&gt;

&lt;p&gt;*Database is missing from this app as this depends on user's needs.&lt;/p&gt;

</description>
      <category>react</category>
      <category>productivity</category>
      <category>node</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Read More Read Less Button… HTML vs JavaScript, which one do you prefer?</title>
      <dc:creator>Alex Cocan</dc:creator>
      <pubDate>Mon, 21 Sep 2020 16:53:25 +0000</pubDate>
      <link>https://dev.to/furbo1/read-more-read-less-button-html-vs-javascript-which-one-do-you-prefer-j5n</link>
      <guid>https://dev.to/furbo1/read-more-read-less-button-html-vs-javascript-which-one-do-you-prefer-j5n</guid>
      <description>&lt;p&gt;Photo by Miguel Á. Padriñán from Pexels&lt;/p&gt;

&lt;p&gt;Although I went deep into HTML, completing the &lt;a href="http://www.W3schools.com"&gt;www.W3schools.com&lt;/a&gt; free course, I somehow forgot about the great option HTML provide out of box with regards to “Read more…” button, very useful feature for lengthy articles.&lt;/p&gt;

&lt;p&gt;HTML &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt; option:&lt;br&gt;
Here comes the handy HTML tags &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;, with summary being a child of . The Summary tag has a useful attribute of "open", which will keep the modal open and display the long content &lt;code&gt;&amp;lt;summary open&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A live example below: &lt;br&gt;
&lt;code&gt;&amp;lt;h1&amp;gt; Some great headline&amp;lt;/h1&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;details open&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;summary&amp;gt;Read More....&amp;lt;/summary&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;p&amp;gt;Some extremely long content… Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium quisquam odit quas vitae, inventore fugit voluptatibus ratione commodi accusamus in deserunt assumenda quis quam voluptas quod unde alias nobis distinctio. Lorem ipsum dolor sit amet consectetur adipisicing elit. Reiciendis rerum, dolore blanditiis nesciunt accusamus, debitis asperiores quis inventore sequi numquam, odio illum natus molestiae hic minima? Praesentium,quia. Cum, iusto!&lt;br&gt;
&amp;lt;/p&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;/details&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;JavaScript  option:&lt;/p&gt;

&lt;p&gt;The JavaScript option involves a little more code only to achieve similar result.&lt;/p&gt;

&lt;p&gt;The HTML part:&lt;br&gt;
&lt;code&gt;&amp;lt;h1&amp;gt; Some great headline&amp;lt;/h1&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;p&amp;gt;Some extremely long content &amp;lt;span id="readLess"&amp;gt;. . . &amp;lt;/span&amp;gt; &amp;lt;span id="readMore"&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium quisquam odit quas vitae, inventore fugit voluptatibus ratione commodi accusamus in deserunt assumenda quis quam voluptas quod unde alias nobis distinctio. Lorem ipsum dolor sit amet consectetur adipisicing elit. Reiciendis rerum, dolore blanditiis nesciunt accusamus, debitis asperiores quis inventore sequi numquam, odio illum natus molestiae hic minima? Praesentium,quia. Cum, iusto.&amp;lt;/span&amp;gt;&lt;br&gt;
&amp;lt;/p&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;button onclick="readMore()" id="morebtn"&amp;gt;Read more&amp;lt;/button&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Adding CSS:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;#readMore{display:none;}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Finally, the Javascript part:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;function readMore() {&lt;br&gt;
    let readLess = document.getElementById("readLess");&lt;br&gt;
    let readMore = document.getElementById("readMore");&lt;br&gt;
    let moreBtn = document.getElementById("morebtn");&lt;br&gt;
    if (readLess.style.display === "none") {&lt;br&gt;
        readLess.style.display = "inline";&lt;br&gt;
        moreBtn.innerHTML = "Read more";&lt;br&gt;
        readMore.style.display = "none";&lt;br&gt;
    } else {&lt;br&gt;
        readLess.style.display = "none";&lt;br&gt;
        moreBtn.innerHTML = "Read less";&lt;br&gt;
        readMore.style.display = "inline";&lt;br&gt;
    }&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;That’s all folks! That was my first article since I started learning Front End Development, I hope it will be useful for less experienced developers.&lt;/p&gt;

&lt;p&gt;What is your favorite use in this case HTML or JavaScript? Please leave comments below.&lt;/p&gt;

&lt;p&gt;Full example code below:&lt;br&gt;
&lt;a href="https://codepen.io/furbo1/pen/rNeQJVq"&gt;https://codepen.io/furbo1/pen/rNeQJVq&lt;/a&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>javascript</category>
      <category>100daysofcode</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
