create-volt 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/package.json +1 -1
- package/template/README.md +16 -0
package/README.md
CHANGED
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -14,6 +14,22 @@ npm run dev # → http://localhost:26628 (PORT env to override)
|
|
|
14
14
|
Edit anything in `public/` or `views/` and save — the dev server pushes a
|
|
15
15
|
reload over Socket.io and the page refreshes itself.
|
|
16
16
|
|
|
17
|
+
## Dev port
|
|
18
|
+
|
|
19
|
+
This app's dev port is set in `server.js` (chosen when the project was
|
|
20
|
+
scaffolded). Override it at launch with the `PORT` env var:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
PORT=4000 npm run dev
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Scaffolding more apps? `create-volt` defaults each one's port to its creation
|
|
27
|
+
date and takes `--port <number>` to avoid collisions on the same day:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm create volt@latest api-app -- --port 26630
|
|
31
|
+
```
|
|
32
|
+
|
|
17
33
|
## Project layout
|
|
18
34
|
|
|
19
35
|
```
|