# samtec-device-connect

> An Electron based GUI that allows users to connect to Samtec eval kits without having to type in the IP address.

Latest version **1.0.3** (published 2018-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install samtec-device-connect
pnpm add samtec-device-connect
yarn add samtec-device-connect
bun add samtec-device-connect
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-06-21 |
| First published | 2018-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 25 |
| Unpacked size | 4.1 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | yes |
| Author | Nathan Page |
| Maintainers | adamtec |
| Keywords | electron, boilerplate, react, redux, flow, sass, webpack, hot, reload |

## Links

- npm: https://www.npmjs.com/package/samtec-device-connect
- Homepage: https://samtec.com/
- Issues: https://samtec.com
- npm.io page: https://npm.io/package/samtec-device-connect

## Dependencies (25)

- [react](https://npm.io/package/react.md) ^16.2.0
- [redux](https://npm.io/package/redux.md) ^3.7.2
- [devtron](https://npm.io/package/devtron.md) ^1.4.0
- [history](https://npm.io/package/history.md) ^4.7.2
- [react-dom](https://npm.io/package/react-dom.md) ^16.2.0
- [redux-saga](https://npm.io/package/redux-saga.md) ^0.16.0
- [material-ui](https://npm.io/package/material-ui.md) ^0.20.1
- [react-redux](https://npm.io/package/react-redux.md) ^5.0.6
- [redux-thunk](https://npm.io/package/redux-thunk.md) ^2.2.0
- [font-awesome](https://npm.io/package/font-awesome.md) ^4.7.0
- [react-router](https://npm.io/package/react-router.md) ^4.2.0
- [redux-promise](https://npm.io/package/redux-promise.md) ^0.6.0
- [electron-debug](https://npm.io/package/electron-debug.md) ^1.5.0
- [electron-redux](https://npm.io/package/electron-redux.md) ^1.3.1
- [electron-updater](https://npm.io/package/electron-updater.md) ^2.21.10
- [react-hot-loader](https://npm.io/package/react-hot-loader.md) ^4.0.0-beta.13
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^4.2.2
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) ^1.0.0
- [styled-components](https://npm.io/package/styled-components.md) ^3.2.6
- [@material-ui/icons](https://npm.io/package/@material-ui/icons.md) ^1.0.0
- [react-router-redux](https://npm.io/package/react-router-redux.md) ^5.0.0-alpha.6
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.5.3
- [request-promise-native](https://npm.io/package/request-promise-native.md) ^1.0.5
- [react-electron-web-view](https://npm.io/package/react-electron-web-view.md) ^2.0.1
- [@samtec-ash/bonjour-mdns](https://npm.io/package/@samtec-ash/bonjour-mdns.md) ^0.0.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-06-21
- 1.0.2 — 2018-06-21

## README

# Samtec Device Connect

### An interface to Connect to All of the Samtec Eval Kit Devices
An [Electron](https://electronjs.org/) based GUI that allows users to connect to Samtec eval kits without having to type in the IP address.
![Demo of the Samtec Device Connect UI](https://i.imgur.com/pZd1gFv.png)
## Development
Start the app in the `dev` environment. This starts the renderer process in [**hot-module-replacement**](https://webpack.js.org/guides/hmr-react/) mode and starts a webpack dev server that sends hot updates to the renderer process:

```bash
$ npm run dev
```

Alternatively, you can run the renderer and main processes separately. This way, you can restart one process without waiting for the other. Run these two commands **simultaneously** in different console tabs:

```bash
$ npm run start-renderer-dev
$ npm run start-main-dev
```
## Packaging

To package apps for the local platform:

```bash
$ npm run package
```

To package apps for all platforms:

First, refer to [Multi Platform Build](https://www.electron.build/multi-platform-build) for dependencies.

Then,
```bash
$ npm run package-all
```

To package apps with options:

```bash
$ npm run package -- --[option]
```

To run End-to-End Test

```bash
$ npm run build
$ npm run test-e2e
```

***Note***: You can debug the production build with devtools by simply setting the `DEBUG_PROD` env variable:
```bash
DEBUG_PROD=true npm run package
```

##  Tech
The project is originally based off the [Electron-React-Bolerplate](https://github.com/chentsulin/electron-react-boilerplate). It also utilizes a few more features:

#### React
   - [Material-UI](https://material-ui.com/): Handy assortment of Stylized Components
#### Redux
  - [Electron Redux](https://www.npmjs.com/package/electron-redux): Connect the redux of the main and renderer processes
  - [Redux Saga](https://www.npmjs.com/package/redux-saga): Asynchronous callings for redux state (e.g., bonjour and requests)
  - Magic

#### Styling
  - [Styled Components](https://www.styled-components.com/): Completely seperate styling from the react structuring

#### Services
  - Bonjour-mdns: Our modified version of Bonjour and multicast-DNS to work with multiple interfaces properly.

## Project Structure
```
samtecDeviceConnect
└───app
│   │   app.html - Injection page
│   │   index.js - Generates the React App (Renderer Side)
│   │   main.dev.js - Runs the Main Process of the App
│   │   routes.js - Allows for routing... not utilized
│   │   types.js - Sets all the Flow types for the App
│   │   ...
│   │
│   └───actions - Handles All Redux actions
│   │   │   bonjour.js - Bonjour actions to get services and info
│   │   │   service.js - Selecting and loading services
│   │
│   └───assets - Stores all miscellaneous assets used in the renderer
│   │
│   └───components - React components and styling
│   │
│   └───containers - Containers connecting components to redux store
│   │
│   └───main - Sub-processes to run on the main process
│   │   │    bonjourController.js - Finds all services and gets Samtec Device Info
|   |
│   └───reducers - Handles All Redux reducers
|   |
│   └───sagas - Used to handle asynchronous actions in the redux
|   |
│   └───store - Creates the redux store of main and renderer and binds them
|
└───resources - General files such as icons used by electron
|
└───test - Test files run to ensure app is working properly
|   ...
```

License
----
MIT

---
_Source: https://npm.io/package/samtec-device-connect · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
