Sign in

Senior Full Stack Software Engineer — Javascript — Berlin
Expressjs

Why to serve static files in Express.js

How to serve static files in Express.js

express.static(root, [options])

What is Express

Installation


Photo by Bruno Martins on Unsplash

How to use self hosted fonts in Next.js?

Choosing the right font

Convert fonts to ttf, eot, woff, woff2


CODEX

Github

1- Git clone



Photo by UX Store on Unsplash

How can we use SVG as ReactComponent inside Nextjs & React?

How to use SVG’s in Next.js?


Setup

npx create-next-app tailwind-demo
cd tailwind-demo
yarn add tailwindcss yarn add -D postcss postcss-preset-env

Configuration

  • tailwind.config.js
  • postcss.config.js
npx…

npx create-next-app your-app-name

Install required libraries for Typescript support

// with Npm
npm install -D typescript @types/react @types/node
// with Yarn
yarn add — dev typescript @types/react @types/node


Photo by Sara Kurfeß on Unsplash


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store