A serverless blog powered by Nuxt/Content + TailwindCSS by TFD

A serverless blog powered by Nuxt/Content + TailwindCSS by TFD

១ មករា ១៩៧០ — Chau Dara

Share this article

We often hear the term vlog on YouTube nowadays. What about Blog?

Blog is a website that regularly updates information concerning specific topics that people who really care and are interested in the topics in question. Blog can be a news website, personal diary, tips, DIY, etc.

So the V in front of the blog means video. We can say that vlog is a version of blog that tells stories in video instead of writing.

You can start writing your own blog with TFD Blog.

Features

This is a serverless blog powered by @nuxt/content and TailwindCSS with integration-ready with forestry.io for headless CMS.

  • Use Docker to containerize with Nginx serves as a reverse proxy.
  • Integrated nuxt/google-analytics with easy web measurement.
  • Preconfigured daisyui tailwind components with highly customizable interactive components
  • Integrated nuxt-img to replace vanilla <img> HTML tag for better image optimization with Netlify
  • Integrated @nuxtjs/moment for time formatting
  • Smooth configurable page, layout transition at @/assets/css/main
  • Integrated @babel/eslint-parser, prettier for codes' rules & styles checking and formatting

Demo

Official TFD Blog

Setup Guide

Clone or Fork this git repository to your Github account.

$ git clone https://github.com/tfd-ed/tfd-blog  

Create .env file from .env.example and replace environment variables with your owns.

VariableDescriptionDefault
GOOGLE_ANALYTICS_IDYour Google Analytics UA ID (UA-XXXXX-X)
WEB_URLYour blog domainwww.tfdevs.com
FACEBOOK_URLLink to your Facebook page or group
TELEGRAM_URLLink to your Telegram channel or grouphttps://t.me/tfdTech
GITHUB_URLLink to your Github accounthttps://github.com/tfd-ed
YOUTUBE_URLLink to your YouTube channel
SITE_TITLEYour blog titleTFD Blog
EMAILYour blog email addressinfo@tfdevs.com
YOUTUBE_CHANNEL_IDYour YouTube channel idUCJHZ__wUxS9lgTZHMxpMJcQ
$ cd tfd-blog   
$ docker-compose up -d   

Without Docker

Make sure NodeJS version 16.4.0+ is installed in your machine.

$ yarn install  
$ yarn dev  

Visit http://localhost:3000/

Production

# generate static project  
$ yarn generate  
$ yarn start  

Managing Content

All contents are located in content/ directory where you can see the structure.

Comments

cookies

Cookies

This website uses Cookies for analytics and on-page improvements! by continuing browsing, you have accepted the Cookies.
Learn about cookies
Accept