Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggested edit to documentation snippet #12607

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,26 @@ See deployment for notes on how to deploy the project on a live system.

### Prerequisites

1. Newest [.NET 6 SDK][2]
2. [Node.js][3] (version 16.\*)
3. Newest [Git][4]
1. [.NET 6 SDK][2] - latest version
2. [Node.js][3] - version 16.\* recommended
3. [Git][4] - latest version
4. A code editor - we like [Visual Studio Code][5]
- Also install [recommended extensions][6] (f.ex. [C#][7])
5. [Docker Desktop][8]
6. If you are running Docker Desktop in Hyper-V mode you need to make sure your C drive is shared with Docker, Docker
Settings -> Shared Drives The File sharing tab is only available in Hyper-V mode, because in WSL 2 mode and Windows
container mode all files are automatically shared by Windows.
7. World Wide Web Publishing Service must be disabled, Services -> "World Wide Web Publishing Service" right click and
5. [Docker Desktop][8] - latest version

> ### On Windows:
> If you are running Docker Desktop in Hyper-V mode you need to make sure your C drive is shared with Docker, Docker
> Settings -> Shared Drives The File sharing tab is only available in Hyper-V mode, because in WSL 2 mode and Windows
> container mode all files are automatically shared by Windows.

> World Wide Web Publishing Service must be disabled, Services -> "World Wide Web Publishing Service" right click and
choose "stop"

_NOTE: If you want to use Safari on MacOS add `127.0.0.1 studio.localhost` to `/private/etc/hosts`_
> ### On MacOS:
> _NOTE: If you want to use Safari on MacOS add > `127.0.0.1 studio.localhost` to `/private/etc/> hosts`_

### Running the solution locally

### Run locally - setup

Clone the [Altinn Studio repo](https://github.com/Altinn/altinn-studio) and navigate to the folder.

Expand All @@ -53,7 +58,7 @@ yarn && yarn setup

More about that script and development in general, [can be found here](development/README.md).

#### Docker Compose
#### Docker container config

The development environment consist of several services defined in [compose.yaml](compose.yaml).

Expand All @@ -62,6 +67,8 @@ The development environment consist of several services defined in [compose.yaml
- `studio-repos` which is [gitea][20] with some custom config. More [here](gitea/README.md).
- `studio-db` which is a postgres database used by both `studio-designer` and `studio-repos`.

## Local solution - run

Run all parts of the solution in containers (Make sure docker is running), with docker compose as follows:

```bash
Expand Down
Loading