@@ -6,8 +6,8 @@ This repository contains the code of the new _openSenseMap_ frontend running at
6
6
Originally, the _ openSenseMap_ was built as part of the bachelor thesis of
7
7
[ @mpfeil ] ( https://github.com/mpfeil ) at the ifgi (Institute for Geoinformatics,
8
8
University of Münster). Between 2016 and 2022 development was partly funded by
9
- the German Ministry of Education and Research (BMBF) in the projets senseBox and
10
- senseBox Pro. This version has been developed by
9
+ the German Ministry of Education and Research (BMBF) in the projects senseBox
10
+ and senseBox Pro. This version has been developed by
11
11
[ @mpfeil ] ( https://github.com/mpfeil ) and
12
12
[ @freds-dev ] ( https://github.com/freds-dev ) .
13
13
@@ -25,6 +25,13 @@ instructions:
25
25
- [ git] ( https://git-scm.com/ ) >= 2.38.0
26
26
- [ Docker] ( https://www.docker.com ) >= 27.0.0
27
27
28
+ #### Developing inside a DevContainer
29
+
30
+ - [ Visual Studio Code] ( https://code.visualstudio.com/ )
31
+ - the
32
+ [ DevContainers extension] ( https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers )
33
+ - [ Docker] ( https://www.docker.com ) >= 27.0.0
34
+
28
35
### Variables
29
36
30
37
You can configure the API endpoint and/or map tiles using the following
@@ -48,6 +55,19 @@ You can create a copy of `.env.example`, rename it to `.env` and set the values.
48
55
5 . Run ` npm run build `
49
56
6 . Run ` npm run dev ` to start the local server
50
57
58
+ #### Using a DevContainer
59
+
60
+ Simply open the project in Visual Studio Code. It should prompt and ask you if
61
+ you would like to open the project in a DevContainer.
62
+
63
+ If you are not prompted hit <kbd >Ctrl</kbd > + <kbd >Shift</kbd > + <kbd >P</kbd >
64
+ (<kbd >Shift</kbd >+<kbd >Command</kbd >+<kbd >P</kbd > on Mac) and select
65
+ ` >DevContainers: Open Workspace in Container... ` .
66
+
67
+ The DevContainer will now build (which will take a bit the first time your are
68
+ doing this) and the window will reload. For convenience ` npm install ` and
69
+ ` npm run build ` are executed for you on start.
70
+
51
71
### Debugging
52
72
53
73
For users of [ Visual Studio Code] ( https://code.visualstudio.com/ ) there is a
0 commit comments