From f18a34e6c285331a53aecd4b9366dfef254f5103 Mon Sep 17 00:00:00 2001 From: Nejc Ilc Date: Fri, 16 Sep 2022 13:16:59 +0200 Subject: [PATCH 1/2] Added import dart:async into control_setup.dart --- README.md | 5 +++++ web/control_setup.dart | 1 + 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 040782a..263d96d 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,8 @@ Aplikacijo je mogoče streči tudi brez gradnje: $ pub global run webdev serve web:8080 ``` kjer je aplikacija nato dosegljiva na `http://localhost:8080`. + +Pred tem mora biti aktiviran paket `webdev`: +``` +$ pub global activate webdev +``` diff --git a/web/control_setup.dart b/web/control_setup.dart index c28090f..8b37acd 100644 --- a/web/control_setup.dart +++ b/web/control_setup.dart @@ -1,5 +1,6 @@ import 'dart:convert'; import 'dart:html'; +import 'dart:async'; Future controlSetup() async { setupNewGame(); From c555ba1e00b4d70ba1a2f400b8d3c40cbcf52a5f Mon Sep 17 00:00:00 2001 From: Nejc Ilc Date: Fri, 31 Mar 2023 13:36:54 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 263d96d..4ddf824 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,22 @@ 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 + +Za gradnjo ustvarimo direktorij `build_dir`, ter poženemo + +```console +pub run build_runner build --output ``` ## Strežba @@ -22,12 +29,15 @@ $ pub run build_runner build --output 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`: -``` -$ pub global activate webdev + +```console +pub global activate webdev ```