Skip to content
Open
Show file tree
Hide file tree
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
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,38 @@ Spletna aplikacija, ki v brskalniku prikaže stanje igre.

## Odvisnosti

Za razvoj je uporabljen Dart SDK 2.0.0.
Za razvoj je uporabljen [Dart SDK 2.0.0](https://dart.dev/get-dart/archive).

Za razvoj je uporabljen brskalnik Firefox 62.0.3.

## Gradnja

Za gradnjo pripravimo direktorij `build_dir`, ter poženemo
Namestimo odvisnosti

```console
pub get
```
$ pub run build_runner build --output <build_dir>

Za gradnjo ustvarimo direktorij `build_dir`, ter poženemo

```console
pub run build_runner build --output <build_dir>
```

## Strežba

Zgrajeno aplikacijo lahko strežemo s pomočjo poljubnega HTTP strežnika (Apache, nginx).

Aplikacijo je mogoče streči tudi brez gradnje:

```console
pub global run webdev serve web:8080
```
$ pub global run webdev serve web:8080
```

kjer je aplikacija nato dosegljiva na `http://localhost:8080`.

Pred tem mora biti aktiviran paket `webdev`:

```console
pub global activate webdev
```
1 change: 1 addition & 0 deletions web/control_setup.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:convert';
import 'dart:html';
import 'dart:async';

Future<void> controlSetup() async {
setupNewGame();
Expand Down