> For the complete documentation index, see [llms.txt](https://docs.podkrepi.bg/development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podkrepi.bg/development/frontend/environments/local-development.md).

# Local Development

## Local development

### Setup local dev environment

```
git clone git@github.com:daritelska-platforma/frontend.git
cd frontend

# Symlink dev environment
ln -s .env.example .env

# Install dependencies
yarn
```

### Start development server

```
yarn dev
```

Visit <http://localhost:3040/>

### Start dev server via Docker Compose

Install the binary via <https://docs.docker.com/compose/install/>

#### Start the container in foreground

```
docker-compose up
```

#### Start the container in background

```
docker-compose up -d
docker-compose logs -f
```

Stop the docker container with `docker-compose down`

## Linting

```
yarn lint
yarn lint:styles
yarn format
yarn type-check
```
