2021-10-30 18:56:54 -04:00
# Getting started
## Preparing for running the backend code
2022-07-31 15:18:34 -04:00
**ToDo:** Document how to set up development environment using docker.
2021-10-30 18:56:54 -04:00
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 ](../config/index.md ) or set up
[environment variables ](../config/index.md ) 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.
2022-10-02 15:10:19 -04:00
## Running backend and frontend together
2021-12-21 04:37:11 -05:00
2022-10-02 15:10:19 -04:00
The documentation for setting up the frontend and how to use it and the backend together can be found in the [frontend repository README ](https://github.com/hedgedoc/react-client/blob/main/README.md ).