<?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: Andy Broger</title>
    <description>The latest articles on DEV Community by Andy Broger (@andybroger).</description>
    <link>https://dev.to/andybroger</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%2F96483%2F1240552f-d646-493b-8a1e-95786a58ca15.jpeg</url>
      <title>DEV Community: Andy Broger</title>
      <link>https://dev.to/andybroger</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andybroger"/>
    <language>en</language>
    <item>
      <title>GraphQL, TypegraphQL &amp; mikroORM a dreamteam 😍</title>
      <dc:creator>Andy Broger</dc:creator>
      <pubDate>Mon, 17 Aug 2020 09:35:01 +0000</pubDate>
      <link>https://dev.to/andybroger/graphql-typegraphql-mikroorm-a-dreamteam-26bp</link>
      <guid>https://dev.to/andybroger/graphql-typegraphql-mikroorm-a-dreamteam-26bp</guid>
      <description>&lt;h1&gt;
  
  
  Hello Folks
&lt;/h1&gt;

&lt;p&gt;I created a minimal Boilerplate Graphql Server with mikroORM v4 and typegraphql for database and schema creation. It also includes a user &amp;amp; role system.&lt;/p&gt;

&lt;p&gt;The session management is done inside a psql table (to not include more dependencies like redis).&lt;/p&gt;

&lt;p&gt;So please check my repo and leave a star if it is useful.&lt;br&gt;
If you want to contribute, feel free, I'm more than happy with it!&lt;/p&gt;

&lt;p&gt;If you want me to write a more detailed post, leave a comment and I'll think about it 😊&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vJ70wriM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/andybroger"&gt;
        andybroger
      &lt;/a&gt; / &lt;a href="https://github.com/andybroger/graphql-server"&gt;
        graphql-server
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A minimal boilerplate graphql server with user management/ role system built in. based on express/micro-orm/typegraphql
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
GraphQL Server&lt;/h1&gt;
&lt;p&gt;A minimal boilerplate graphql server with user management/ role system built in.&lt;/p&gt;
&lt;p&gt;Technologies used:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;express&lt;/li&gt;
&lt;li&gt;express-graphql&lt;/li&gt;
&lt;li&gt;microORM v4&lt;/li&gt;
&lt;li&gt;typegraphql&lt;/li&gt;
&lt;li&gt;postgres&lt;/li&gt;
&lt;li&gt;express-session with psql as session store&lt;/li&gt;
&lt;li&gt;graphql-playground&lt;/li&gt;
&lt;li&gt;typescript&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
Usage&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;create a .env file&lt;/li&gt;
&lt;li&gt;run postgress db: &lt;code&gt;docker-compose up -d&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;start server: &lt;code&gt;yarn dev&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
TODO&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;[] implement token expire function&lt;/li&gt;
&lt;li&gt;[] a lot more i didnt think about it yet.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
Improve&lt;/h2&gt;
&lt;p&gt;If you want improve and submit a PR, i would be more than happy about that. 😁&lt;/p&gt;
&lt;h2&gt;
Resources&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://github.com/driescroons/mikro-orm-graphql-example"&gt;MikroORM graphql example&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/andybroger/graphql-server"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


</description>
      <category>typescript</category>
      <category>graphql</category>
      <category>postgres</category>
      <category>node</category>
    </item>
    <item>
      <title>Next.js with tailwindcss</title>
      <dc:creator>Andy Broger</dc:creator>
      <pubDate>Sun, 05 Apr 2020 14:17:01 +0000</pubDate>
      <link>https://dev.to/andybroger/next-js-with-tailwindcss-5c23</link>
      <guid>https://dev.to/andybroger/next-js-with-tailwindcss-5c23</guid>
      <description>&lt;p&gt;Hey Folks,&lt;/p&gt;

&lt;p&gt;First post and i don't like long intros, so mine will be short. Searched for next.js and tailwindcss templates, found a lot, some outdated, some without purging, some too much boilerplate stuff, etc.&lt;/p&gt;

&lt;p&gt;So i created my own and here it is:&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vJ70wriM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/andybroger"&gt;
        andybroger
      &lt;/a&gt; / &lt;a href="https://github.com/andybroger/nextjs-tailwindcss"&gt;
        nextjs-tailwindcss
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      nextjs + tailwindcss template
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
nextjs-tailwindcss template&lt;/h1&gt;
&lt;p&gt;next.js template including tailwindcss, &lt;strong&gt;check out&lt;/strong&gt; the &lt;a href="https://github.com/andybroger/nextjs-tailwindcss/tree/jsx-tailwind"&gt;jsx-tailwind&lt;/a&gt; branch if you need support for @apply rules in styled-jsx.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Features&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Includes Tailwindcss&lt;/li&gt;
&lt;li&gt;Includes postcss-preset-env&lt;/li&gt;
&lt;li&gt;now uses tailwindcss 1.4.x purge method on production builds&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
usage&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Clone this repo&lt;/li&gt;
&lt;li&gt;npm install&lt;/li&gt;
&lt;li&gt;npm run dev&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
notes&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;styles/main.css&lt;/strong&gt;
The styles/main.css files includes tailwindcss imports and also supports global styles. It is processed by postcss and with postcss-preset-env supports nesting and other cool stuff.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;postcss.config.js&lt;/strong&gt;
The configuration file for postcss. The purgecss plugin is configured to scan the *.js files in the pages/ and components/ folder.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;tailwind.config.js&lt;/strong&gt;
You should know that file, its the default config generated with &lt;code&gt;npx tailwindcss init&lt;/code&gt;. It's where your tailwindcss config goes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;pages/_app.js&lt;/strong&gt;
Here we integrate &lt;code&gt;styles/main.css&lt;/code&gt; into the app.&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/andybroger/nextjs-tailwindcss"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h3&gt;
  
  
  some notes
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;styles/main.css&lt;/strong&gt;&lt;br&gt;
The styles/main.css files includes tailwindcss imports and also supports global styles. It is processed by postcss and with postcss-preset-env supports nesting and other cool stuff.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;postcss.config.js&lt;/strong&gt;&lt;br&gt;
The configuration file for postcss. The purgecss plugin is configured to scan the *.js files in the pages/ and components/ folder.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;tailwind.config.js&lt;/strong&gt;&lt;br&gt;
You should know that file, its the default config generated with &lt;code&gt;npx tailwindcss init&lt;/code&gt;. It's where your tailwindcss config goes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;pages/_app.js&lt;/strong&gt;&lt;br&gt;
Here we integrate &lt;code&gt;styles/main.css&lt;/code&gt; into the app.&lt;/p&gt;

&lt;p&gt;Please feel free to comment, if you have any questions.&lt;/p&gt;

</description>
      <category>react</category>
      <category>nextjs</category>
      <category>javascript</category>
      <category>starter</category>
    </item>
  </channel>
</rss>
