<?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: Waldo</title>
    <description>The latest articles on DEV Community by Waldo (@waldo).</description>
    <link>https://dev.to/waldo</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%2F50278%2Fca40c538-08e0-497c-baf4-f667ad8e1775.jpg</url>
      <title>DEV Community: Waldo</title>
      <link>https://dev.to/waldo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/waldo"/>
    <language>en</language>
    <item>
      <title>A Quick Starter template for building a project using  Next.js,Typescript,TailwindCSS, ESLint,prettier (boilerplate).</title>
      <dc:creator>Waldo</dc:creator>
      <pubDate>Fri, 28 May 2021 03:13:41 +0000</pubDate>
      <link>https://dev.to/waldo/a-quick-starter-template-for-building-a-project-using-react-typescript-next-js-tailwindcss-and-eslint-16m8</link>
      <guid>https://dev.to/waldo/a-quick-starter-template-for-building-a-project-using-react-typescript-next-js-tailwindcss-and-eslint-16m8</guid>
      <description>&lt;p&gt;&lt;strong&gt;This is a Next.js boilerplate with TailwindCSS and Typescript, Eslint, prettier&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/zaakzaku/nextjs-typescript-tailwind-boilerplate"&gt;Github repository&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/zaakzaku/nextjs-typescript-tailwind-boilerplate"&gt;https://github.com/zaakzaku/nextjs-typescript-tailwind-boilerplate&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;First, run the development server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/zaakzaku/nextjs-typescript-tailwind-boilerplate
&lt;span class="nb"&gt;cd &lt;/span&gt;nextjs-typescript-tailwind-boilerplate
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run dev

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;a href="http://localhost:3000"&gt;http://localhost:3000&lt;/a&gt; with your browser to see the result.&lt;/p&gt;

&lt;p&gt;You can start editing the page by modifying &lt;code&gt;pages/index.js&lt;/code&gt;. The page auto-updates as you edit the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Learn More
&lt;/h2&gt;

&lt;p&gt;To learn more about Next.js, take a look at the following resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://nextjs.org/docs"&gt;Next.js Documentation&lt;/a&gt; - learn about Next.js features and API.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://nextjs.org/learn"&gt;Learn Next.js&lt;/a&gt; - an interactive Next.js tutorial.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can check out &lt;a href="https://github.com/vercel/next.js/"&gt;the Next.js GitHub repository&lt;/a&gt; - your feedback and contributions are welcome!&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploy on Vercel
&lt;/h2&gt;

&lt;p&gt;The easiest way to deploy your Next.js app is to use the &lt;a href="https://vercel.com/import?utm_medium=default-template&amp;amp;filter=next.js&amp;amp;utm_source=create-next-app&amp;amp;utm_campaign=create-next-app-readme"&gt;Vercel Platform&lt;/a&gt; from the creators of Next.js.&lt;/p&gt;

&lt;p&gt;Check out our &lt;a href="https://nextjs.org/docs/deployment"&gt;Next.js deployment documentation&lt;/a&gt; for more details.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Next.js + TypeScript + Tailwind CSS project setup </title>
      <dc:creator>Waldo</dc:creator>
      <pubDate>Thu, 27 May 2021 01:09:54 +0000</pubDate>
      <link>https://dev.to/waldo/next-js-typescript-tailwind-css-project-setup-4kcj</link>
      <guid>https://dev.to/waldo/next-js-typescript-tailwind-css-project-setup-4kcj</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. Set up the Next.js project&lt;/strong&gt;&lt;br&gt;
First, create-next-app use the command to create a codebase from the Next.js template.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx create-next-app nextjs-ts-tailwind-example --use-npm --example "https://github.com/vercel/next-learn-starter/tree/master/basics-final"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the command is completed, the code of Next.js is generated, so move the directory and check the operation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd nextjs-ts-tailwind-example
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Set up typescript&lt;/strong&gt;&lt;br&gt;
create config files for typescript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;touch tsconfig.json next-env.d.ts

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install the packages needed to run TypeScript.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install --save-dev typescript @types/react @types/node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;add to the Typescript config file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//tsconfig.json 
{
  "compilerOptions": {
    "target": "es5",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": false,
    "forceConsistentCasingInFileNames": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve"
  },
  "include": [
    "next-env.d.ts",
    "**/*.ts",
    "**/*.tsx"
  ],
  "exclude": [
    "node_modules"
  ]
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;add to the next-env.d.ts config file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/// &amp;lt;reference types="next" /&amp;gt;
/// &amp;lt;reference types="next/types/global" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, rewrite various js files to ts files by referring to the following repository.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mv components/date.js components/date.tsx
mv components/layout.js components/layout.tsx
mv lib/posts.js lib/posts.ts
mv pages/_app.js pages/_app.tsx
mv pages/index.js pages/index.tsx
mv 'pages/posts/[id].js' 'pages/posts/[id].tsx'
mv pages/api/hello.js pages/api/hello.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After rewriting, check the operation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the operation with a browser and it is OK if it works without error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Set up Tailwind css&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install tailwindcss@latest postcss@latest autoprefixer@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;generate a Tailwind CSS configuration file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx tailwindcss init -p
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, tailwind.config.js the postcss.config.js two files will be generated.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//tailwind.config.js
module.exports = {
  purge: [], //remove this line 
  purge: ['./components/**/*.tsx', './pages/**/*.tsx','./public/**/*.html'], //add this line
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {},
  },
  variants: {
    extend: {},
  },
  plugins: [],
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//postcss.config.js
module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rewrite to read the CSS generated by Tailwind CSS styles/global.css.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//styles/global.css
@tailwind base;
@tailwind components;
@tailwind utilities;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can use Tailwind CSS!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
