This guide will help you set up and run your own instance of FMHY locally.
Do note that you must differentiate your instance from the official site (fmhy.net) to avoid confusion. Steps to do so are given below.
git clone <https://github.com/fmhy/edit.git>
cd edit
Install project dependencies using pnpm:
pnpm install
To run the project in development mode:
# Start the documentation site in dev modepnpm docs:dev
# Start the API in dev mode (if needed)pnpm api:dev
The development server will start at http://localhost:5173 by default.
You will need to update:
meta constant in docs/.vitepress/constants.tsname: Name of your instancehostname: Your domaindescription: Description of your instancetags: Opengraph tagsbuild: Build options (can be configured with Environment Variables)docs/index.mdtitledescriptionhero.namehero.taglineTo build the project for production:
# Build the documentation sitepnpm docs:build
# Build the API (if needed) using the Node.js presetNITRO_PRESET=node pnpm api:build