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
Copy file name to clipboardExpand all lines: .github/README.md
+37-7Lines changed: 37 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,21 +29,27 @@ You can then start the server with `node build`.
29
29
<details>
30
30
<summary>More Deployment Options</summary>
31
31
32
-
#### Option 4 - Source: Static
32
+
#### Option 4 - GitHub Pages
33
+
Fork the repo.<br>
34
+
Head to the Actions tab, find the "Deploy to GitHub Pages" workflow, and trigger it.<br>
35
+
Then go to Settings > Pages > Source and select the `gh-pages` branch.<br>
36
+
Visit `https://<your-username>.github.io/networking-toolbox/` to see your deployed app.
37
+
38
+
#### Option 5 - Source: Static
33
39
Follow the dev steps below.
34
40
Then run `npm run build:static` to compile output.<br>
35
41
And upload the contents of `./build` to any web server, CDN or static host.
36
42
37
-
#### Option 5 - Source: Docker
43
+
#### Option 6 - Source: Docker
38
44
Follow the dev steps below.
39
45
Then run `docker build -t networking-toolbox .` to build the image.<br>
40
46
You can then start the container with `docker run -p 8080:80 networking-toolbox`.
41
47
42
-
#### Option 6 - GitHub Pages
43
-
Fork the repo.<br>
44
-
Head to the Actions tab, find the "Deploy to GitHub Pages" workflow, and trigger it.<br>
45
-
Then go to Settings > Pages > Source and select the `gh-pages` branch.<br>
46
-
Visit `https://<your-username>.github.io/networking-toolbox/` to see your deployed app.
48
+
#### Option 7 - Source: Other Platforms
49
+
You can build the app from source for a variety of platforms. This is done via SvelteKit adapters.<br>
50
+
First, follow the dev steps below.
51
+
Then, simply set the `DEPLOY_ENV` environmental variable, to one of `vercel`, `node`, `docker`, `netlify`, `static` or just `auto`, and build the app<br>
52
+
For example: `DEPLOY_ENV='node' npm run build`
47
53
</details>
48
54
49
55
---
@@ -71,6 +77,30 @@ Before merging, code must pass all unit and end-to-end tests, as well as linting
71
77
yarn test
72
78
```
73
79
80
+
<details>
81
+
<summary><h4>Project Commands</h4></summary>
82
+
83
+
##### Building
84
+
-`npm run dev` - Starts the development server with hot reload/HMR
85
+
-`npm run build` - Builds the app for production
86
+
- Note: choose adapter for platform by setting the `DEPLOY_ENV` var (see above)
87
+
-`npm run preview` - Test your build locally (build required first)
88
+
-`npm start` - Starts the production app (build required first)
89
+
90
+
##### Testing
91
+
-`npm test` — Run unit tests with Vitest
92
+
-`npm run test:api` — Run API tests
93
+
-`npm run test:e2e` — Run Playwright end-to-end tests
94
+
-`npm run test:coverage` — Generate test coverage
95
+
96
+
##### Checking
97
+
-`npm run check` — SvelteKit checks (types & diagnostics)
98
+
-`npm run types` — TypeScript-specific strict checking
99
+
-`npm run lint` — ESLint on all TS and Svelte files
100
+
-`npm run format` — Format files with Prettier
101
+
-`npm run build-check` — Quitley check build works
org.opencontainers.image.description=All-in-one Swiss Army knife for sysadmins and network engineers - a collection of 100+ offline-first essential networking tools in a single, easy-to-use Docker image.
0 commit comments