Git Product home page Git Product logo

tfd-blog's Introduction

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

Nest Logo Nest Logo Nest Logo


Version Package License YouTube Channel Subscribers

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

With Docker (Recommended)

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.

Variable Description Default
GOOGLE_ANALYTICS_ID Your Google Analytics UA ID (UA-XXXXX-X)
WEB_URL Your blog domain https://www.tfdevs.com
FACEBOOK_URL Link to your Facebook page or group https://www.facebook.com/teachingfordevelopment
TELEGRAM_URL Link to your Telegram channel or group https://t.me/tfdTech
GITHUB_URL Link to your Github account https://github.com/tfd-ed
YOUTUBE_URL Link to your YouTube channel https://www.youtube.com/c/TeachingForDevelopment
SITE_TITLE Your blog title TFD Blog
EMAIL Your blog email address [email protected]
YOUTUBE_CHANNEL_ID Your YouTube channel id UCJHZ__wUxS9lgTZHMxpMJcQ
$ cd tfd-blog   
$ docker-compose up -d   

Visit http://localhost

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.

Donation

Kindly donate to the following bank account (Cambodia) if you want to support our works.

tfd-blog's People

Contributors

kimangkhenng avatar tfd-ed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.