Skip to content

cxo05/xavieroh

Repository files navigation

Personal Site

A site made with Next.js with tailwindcss.

Using bun instead of npm for package management.

Replace bun with npm when on windows.

Getting Started

Install Bun

curl https://bun.sh/install | bash

Development

  1. Install dependencies
bun install
  1. Run the development server.
bun run dev
  1. Open http://localhost:3000 with your browser to see the result.

Deployment

  1. Change config in config.json
  2. Add markdown files in _posts folder. (e.g. a-demo-of-react-markdown.md)
  3. Add images in public/images folder.
  4. Convert images to webp format (Install cwebp)
    sh scripts/convert-to-webp.sh
    Warning: This also replaces all occurances of .(jpg|jpeg|tif|tiff|png) with .webp in the markdown files
  5. Build the project and host or deploy using https://vercel.com/
    bun run build