Getting Started
Requirements
- Node.js 18 or later
- npm
Install
bash
git clone https://github.com/yuis-ice/astro-html-editor
cd astro-html-editor
npm installBuild and run
bash
npm run build
npm startThe server starts at http://localhost:4321.
Development mode
bash
npm run devThis starts the Astro dev server with hot reload. Changes to .astro and .ts files apply without a full rebuild.
First use
- Open
http://localhost:4321in a browser. - Click New to create a file. The editor opens with a starter template.
- Edit the HTML on the left. The preview on the right updates as you type.
- Files save automatically. You can close the tab and reopen the URL to continue.
Port
Astro's standalone adapter picks up the PORT environment variable:
bash
PORT=8080 npm start