---
# System prepended metadata

title: HedgeDoc をビルドして実行 TypeScript　2021-05-16
tags: [HedgeDoc, TypeScript]

---

---
lang: ja-jp
breaks: true
---
# HedgeDoc をビルドして実行 TypeScript　2021-05-16

> hedgedoc/hedgedoc
> https://github.com/hedgedoc/hedgedoc

> Getting started
> https://docs.hedgedoc.org/setup/getting-started/

> Manual Installation
> https://docs.hedgedoc.org/setup/manual-setup/

> Configuration
> https://docs.hedgedoc.org/configuration/

```shell=
sudo npm install -g yarn
sudo npm install -g @nestjs/cli
```

```shell=
yarn install
yarn build
yarn install
yarn add bin/setup
```

```shell=
vim config.json
```

```json=
{
  "production": {
    "db": {
      "dialect": "sqlite",
      "storage": "./db.hedgedoc.sqlite"
   },
    "urlAddPort": true,
    "domain": "localhost"
  }
}
```

```shell=
export HD_DOMAIN="http://localhost"
export HD_MEDIA_BACKEND="filesystem"
export HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH="uploads/"
export HD_DATABASE_DIALECT="sqlite"
export HD_DATABASE_STORAGE="./hedgedoc.sqlite"
```

```shell=
NODE_ENV=production yarn start
```

## 確認

http://localhost:3000/apidoc/

###### tags: `HedgeDoc` `TypeScript`
