Skip to content

shenlu89/shenlu.me

Repository files navigation

shenlu.me

Shen Lu's Blog, inspired by leerob.io.

Features

Overview

  • components/* - The components defined as functions provide more features for all pages.
  • data/* - All private information (matadata, headers, articles, etc.) about the pages.
  • lib/* - A collection of helpful utilities or functions for external services.
  • app/api/* - API Routes and Serverless KV with Redis API powered by Upstash for post views.
  • app/blog/* - Static pre-rendered posts using next-mdx-remote.
  • content/* - All the MDX files for blog posts.
  • public/* - Static public assets including fonts and images.

Install and Run Locally

This application requires:

  • Bun v1.0+ (compatibility with Node.js v20).
  • Create a .env file similar to .env.example.
git clone git@github.com:shenlu89/shenlu.me.git
cd shenlu.me

// create .env file similar to .env.example

// development mode
bun install
bun dev

// production mode
// bun run build

Deploy on Vercel

Deploy with Vercel

License

This repository is licensed under MIT, and the content of all pages is licensed under CC BY-NC-SA 4.0.