A tech blog built with Docusaurus. Live at metroevolved.com.
-
Install nvm-windows (Node Version Manager):
https://github.com/coreybutler/nvm-windows/releases -
Install and activate Node.js version 24:
nvm install 24 nvm use 24- Verify Node.js installation:
Expected output:
node -v> node -v v24.12.0
- Verify Node.js installation:
-
Enable Corepack and Yarn:
corepack enable yarn -vExpected output:
> yarn -v ! Corepack is about to download https://repo.yarnpkg.com/4.12.0/packages/yarnpkg-cli/bin/yarn.js ? Do you want to continue? [Y/n] Y 4.12.0
yarn install
yarn build
Generates static files in the build directory.
yarn start
Starts a local dev server with hot reload.
It will also launch browser and navigate it to Docusaurus default port:
http://localhost:3000
yarn serve
Yarn Serve is similar to Yarn Start. It launches server and browser, however it does NOT launch Hot Reload.
Commits to main branch automatically deploy to GitHub Pages.
yarn up @docusaurus/core@latest @docusaurus/preset-classic@latest @docusaurus/module-type-aliases@latest @docusaurus/tsconfig@latest @docusaurus/types@latest
The git clean -xdf command is destructive - could benefit from a warning that it removes all untracked files
git clean -xdf