mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-26 07:33:23 +03:00
156 lines
5.4 KiB
Markdown
156 lines
5.4 KiB
Markdown
|
|
<h1 align="center">Networking Toolbox</h1>
|
|
<p align="center">
|
|
<i>The all-in-one offline-first networking toolbox for sysadmins</i><br>
|
|
🌐 <b><a href="https://networking-toolbox.as93.net">networking-toolbox.as93.net</a></b>
|
|
</p>
|
|
<a href="https://networking-toolbox.as93.net">
|
|
<p align="center">
|
|
<img width="128" src="https://github.com/Lissy93/networking-toolbox/blob/main/static/icon.png?raw=true" />
|
|
</p>
|
|
</a>
|
|
|
|
---
|
|
|
|
### Deploying
|
|
|
|
#### Option 1 - Docker
|
|
Run `docker run -p 3000:3000 lissy93/networking-toolbox`<br>
|
|
Or, use our example [`docker-compose.yml`](https://github.com/Lissy93/networking-toolbox/blob/main/docker-compose.yml)
|
|
|
|
#### Option 2 - Cloud
|
|
Fork the repo, and import into Vercel, Netlify or any static hosting provider of your choice.
|
|
|
|
#### Option 3 - Source: Node
|
|
Follow the dev steps below.
|
|
Then run `npm run build:node` to compile output.<br>
|
|
You can then start the server with `node build`.
|
|
|
|
<details>
|
|
<summary>More Deployment Options</summary>
|
|
|
|
#### Option 4 - GitHub Pages
|
|
Fork the repo.<br>
|
|
Head to the Actions tab, find the "Deploy to GitHub Pages" workflow, and trigger it.<br>
|
|
Then go to Settings > Pages > Source and select the `gh-pages` branch.<br>
|
|
Visit `https://<your-username>.github.io/networking-toolbox/` to see your deployed app.
|
|
|
|
#### Option 5 - Source: Static
|
|
Follow the dev steps below.
|
|
Then run `npm run build:static` to compile output.<br>
|
|
And upload the contents of `./build` to any web server, CDN or static host.
|
|
|
|
#### Option 6 - Source: Docker
|
|
Follow the dev steps below.
|
|
Then run `docker build -t networking-toolbox .` to build the image.<br>
|
|
You can then start the container with `docker run -p 3000:3000 networking-toolbox`.
|
|
|
|
#### Option 7 - Source: Other Platforms
|
|
You can build the app from source for a variety of platforms. This is done via SvelteKit adapters.<br>
|
|
First, follow the dev steps below.
|
|
Then, simply set the `DEPLOY_ENV` environmental variable, to one of `vercel`, `node`, `docker`, `netlify`, `static` or just `auto`, and build the app<br>
|
|
For example: `DEPLOY_ENV='node' npm run build`
|
|
</details>
|
|
|
|
---
|
|
|
|
### Developing
|
|
|
|
#### Prerequisites
|
|
You'll need Node.js installed, as well as Git and optionally Docker.<br>
|
|
The app is build with Svelte + SvelteKit in TypeScript.
|
|
|
|
#### Setup Commands
|
|
|
|
```
|
|
git clone git@github.com:Lissy93/networking-toolbox.git
|
|
cd networking-toolbox
|
|
yarn
|
|
yarn dev
|
|
```
|
|
|
|
#### Testing
|
|
|
|
Before merging, code must pass all unit and end-to-end tests, as well as linting, type checks, svelte check and build checks.<br>
|
|
|
|
```
|
|
yarn test
|
|
```
|
|
|
|
<details>
|
|
<summary><h4>Project Commands</h4></summary>
|
|
|
|
##### Building
|
|
- `npm run dev` - Starts the development server with hot reload/HMR
|
|
- `npm run build` - Builds the app for production
|
|
- Note: choose adapter for platform by setting the `DEPLOY_ENV` var (see above)
|
|
- `npm run preview` - Test your build locally (build required first)
|
|
- `npm start` - Starts the production app (build required first)
|
|
|
|
##### Testing
|
|
- `npm test` — Run unit tests with Vitest
|
|
- `npm run test:api` — Run API tests
|
|
- `npm run test:e2e` — Run Playwright end-to-end tests
|
|
- `npm run test:coverage` — Generate test coverage
|
|
|
|
##### Checking
|
|
- `npm run check` — SvelteKit checks (types & diagnostics)
|
|
- `npm run types` — TypeScript-specific strict checking
|
|
- `npm run lint` — ESLint on all TS and Svelte files
|
|
- `npm run format` — Format files with Prettier
|
|
- `npm run build-check` — Quitley check build works
|
|
</details>
|
|
|
|
---
|
|
|
|
### Contributing
|
|
Contributions are welcome (and much appreciated!)<br>
|
|
Follow the dev instructions above to get started, then check the [Contributing Guidelines](), and submit your changes as a PR.<br>
|
|
If you're new to GitHub or open source, take a look at [git-in.to](https://git-in.to) for a guide on getting started.
|
|
|
|
---
|
|
|
|
### Features
|
|
|
|
<h3 align="center">Make it your own</h3>
|
|
<p align="center"><i>Custom layouts, theming, bookmarking, multi-language support and more</i></p>
|
|
<p align="center">
|
|
<img width="800" src="https://storage.googleapis.com/as93-screenshots/networking-toolbox/light-dark-mode-single.png" />
|
|
</p>
|
|
|
|
<h3 align="center">Works anywhere</h3>
|
|
<p align="center"><i>Offline-capable, mobile optimized, zero third-party dependencies</i></p>
|
|
<p align="center">
|
|
<img width="800" src="https://storage.googleapis.com/as93-screenshots/networking-toolbox/mobile-views.png" />
|
|
</p>
|
|
|
|
<h3 align="center">100s of tools</h3>
|
|
<p align="center"><i>Everything you need for converting, calculating, diagnosing and verifying server configs</i></p>
|
|
<p align="center">
|
|
<img width="800" src="https://github.com/user-attachments/assets/2dfe66b7-2325-4b41-b116-32eab74d3cf6" />
|
|
</p>
|
|
|
|
---
|
|
|
|
<!-- License + Copyright -->
|
|
<p align="center">
|
|
<i>© <a href="https://aliciasykes.com">Alicia Sykes</a> 2026</i><br>
|
|
<i>Licensed under <a href="https://gist.github.com/Lissy93/143d2ee01ccc5c052a17">MIT</a></i><br>
|
|
<a href="https://github.com/lissy93"><img src="https://cdn.as93.net/84m3gc?w=56" /></a><br>
|
|
<sup>Thanks for visiting :)</sup>
|
|
</p>
|
|
|
|
<!-- Dinosaur -->
|
|
<!--
|
|
. - ~ ~ ~ - .
|
|
.. _ .-~ ~-.
|
|
//| \ `..~ `.
|
|
|| | } } / \ \
|
|
(\ \\ \~^..' | } \
|
|
\`.-~ o / } | / \
|
|
(__ | / | / `.
|
|
`- - ~ ~ -._| /_ - ~ ~ ^| /- _ `.
|
|
| / | / ~-. ~- _
|
|
|_____| |_____| ~ - . _ _~_-_
|
|
-->
|