<?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: Leshawn Rice</title>
    <description>The latest articles on DEV Community by Leshawn Rice (@leshawnrice).</description>
    <link>https://dev.to/leshawnrice</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%2F693369%2F49596965-3f16-46b9-9cba-62780a8fc3bf.png</url>
      <title>DEV Community: Leshawn Rice</title>
      <link>https://dev.to/leshawnrice</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leshawnrice"/>
    <language>en</language>
    <item>
      <title>Backend Generator</title>
      <dc:creator>Leshawn Rice</dc:creator>
      <pubDate>Fri, 24 Sep 2021 16:50:37 +0000</pubDate>
      <link>https://dev.to/leshawnrice/backend-generator-4jhm</link>
      <guid>https://dev.to/leshawnrice/backend-generator-4jhm</guid>
      <description>&lt;p&gt;Every time I make a backend in express, there’s always a small period of time at the start where I’m writing the same code just to get the backend setup. &lt;/p&gt;

&lt;p&gt;Error methods, authentication middleware, a user model, the database, basic login/register routes. All of these are essentially the same across my express backends save for the database schema. &lt;/p&gt;

&lt;p&gt;As I started up on configuring the backend for my latest project, I thought to myself, “Why don’t I just automate this?” &lt;/p&gt;

&lt;p&gt;Now, there are already tools available to generate an express backend for you, but as I’ve been working with ansible a lot lately at work, I figured I’d write a playbook to quickly generate an express backend with some basic user input.&lt;/p&gt;

&lt;p&gt;The result is &lt;a href="https://github.com/leshawn-rice/express-generator"&gt;express-generator&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;express-generator is essentially an ansible playbook run by a bash script that just takes some input to pass as variables to ansible. It’s lightweight, quick, and super easy to use: just download the source code, run bash setup.sh, then the next time you wanna create a backend in express, simply run express-generator from the command line and voila!&lt;/p&gt;

</description>
      <category>node</category>
      <category>ansible</category>
      <category>express</category>
      <category>backend</category>
    </item>
  </channel>
</rss>
