mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 03:01:13 +00:00
d5dfbb575a
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
870 B
870 B
Setting up the backend
ToDo: Document how to set up development environment using docker.
You need at least Node 14 (we recommend Node 18) and yarn. You MUST use yarn! There is no support for npm.
- Clone this repo (e.g.
git clone https://github.com/hedgedoc/hedgedoc.git hedgedoc
) - Go into the backend directory (e.g.
cd hedgedoc/backend
) - Run
yarn install
- Create an environment file. We recommend to use the example file by running
cp .env.example .env
You can modify this file according to the configuration documentation. - Run
openssl rand -hex 16 | sed -E 's/(.*)/HD_SESSION_SECRET=\1/' >> .env
to generate a session secret if you have not set one manually before.