hedgedoc/docs/content/dev/getting-started.md
Tilman Vatteroth 01d9168819 fix(docs): correct getting started dev documentation
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-10-02 21:34:54 +02:00

928 B

Getting started

Preparing for running the backend code

ToDo: Document how to set up development environment using docker.

  1. Clone the repository with git clone https://github.com/hedgedoc/hedgedoc.git (cloning is the preferred way, but you can also download and unzip a release)

  2. Enter the directory and run yarn install.

  3. Run cp .env.example .env to use the example configuration.

    Alternatively, set up a .env or set up environment variables yourself.

  4. 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.

Running backend and frontend together

The documentation for setting up the frontend and how to use it and the backend together can be found in the frontend repository README.