Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.42 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.42 KB

Documentation

Source code for the documentation website for my tools and projects

Built with Starlight

chrome_zA9cpG8vtS


Running locally

If you dont already have NVM installed, download the latest nvm-setup.zip from here, then extract the zip and run the installer.

If you are on a Unix based machine like Linux or MacOS, run the following command to install NVM:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

You can verify that NVM is installed by running:

nvm --version

After installing NVM run the following commands in the directory of the project:

  • nvm use to switch to the required Node version.
    • If the required version is not installed, you will be prompted to run the nvm install command.
    • After installing the required version, run nvm use again
  • npm install to install the dependencies

To start testing locally you can use the following commands:

  • npm run dev to start a local dev server at localhost:4321
  • npm run build to create a build of the website
  • npm run preview to preview the build at localhost:4321