You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To update apidom submodule to latest commit, issue the following command:
30
+
31
+
```sh
32
+
$ git submodule update --recursive --remote
33
+
```
21
34
22
35
Change directory to `apidom` monorepo and run following commands:
23
36
@@ -28,7 +41,7 @@ Change directory to `apidom` monorepo and run following commands:
28
41
29
42
Now change to root directory and run the following commands
30
43
31
-
```shell script
44
+
```sh
32
45
$ npm i
33
46
$ npm start
34
47
```
@@ -37,6 +50,25 @@ Edit files in `./src` directory
37
50
38
51
The default development port is `port=3000`. If a port is already in use, `npm start` will increment the port.
39
52
53
+
### MacOS Install notes
54
+
55
+
With the combination of MacOS and Node.js 16, there is a known compatibility issue of installing and building the `tree-sitter` dependency. The workaround is to globally install `npm@7` (for lerna/apidom monorepo) but use Node.js 14 to install/build tree-sitter.
56
+
57
+
Although the prerequisite is to use [email protected], at this point we don't rely on any specific feature from Node.js 16 (except for `npm@7`).
58
+
59
+
```sh
60
+
$ npm install -g npm
61
+
$ npm --version
62
+
```
63
+
64
+
Assuming we are using `NVM` to manage Node versions,
65
+
66
+
```sh
67
+
$ nvm use v14
68
+
```
69
+
70
+
Then follow the installation steps above
71
+
40
72
## Test
41
73
42
74
Both Jest and Cypress include `@testing-library` plugin support.
@@ -102,3 +134,14 @@ This script will build and serve a gzipped static build at `localhost:3050`.
102
134
$ npm run build
103
135
$ npm run serve-static-build
104
136
```
137
+
138
+
## Docker
139
+
Once we build the app, we can also build and run a Docker container.
140
+
141
+
```sh
142
+
$ docker build . -t {{label}}
143
+
$ docker run -p 8080:80 {{label}}
144
+
```
145
+
146
+
- {{label}} can be any descriptive string, e.g. `user/myapp-1`
0 commit comments