An open API service indexing awesome lists of open source software.

https://github.com/microcodeincorporated/scrutiny.net

A new IIoT suite of applications for error proofing product assembly.
https://github.com/microcodeincorporated/scrutiny.net

Last synced: 7 months ago
JSON representation

A new IIoT suite of applications for error proofing product assembly.

Awesome Lists containing this project

README

          

# Scrutiny.NET
A Full-Stack MERN (Mongo-Express-React-Node) Application in Docker Containers for error proofing product assembly.

* coming soon...

```
COMPOSE_PROJECT_NAME=${APP_NAME}
```

* The APP_NAME env var is also used in the docker-compose.yml file to generate consistent ‘container_name: -' to explicitly name the sub-containers with a prefix matching the 'appname-' this allows the docker desktop to stack the containers automatically…

```
#
services:
#
# F R O N T E N D
# ---------------
frontend:
# frontend, client, app ui
container_name: ${APP_NAME}-frontend
# use the shared .env file for all 3 Tiers
env_file:
- .\.env # shared environment vars for all 3-Tiers
- .\.env.${NODE_ENV:-development} # "development" to override the "production" vars in the 'Dockerfile'
build:
context: frontend # build from \frontend
args:
APP_NAME: ${APP_NAME}
NODE_ENV: ${NODE_ENV:-development}
ports:
- '${APP_FRONTEND_PORT:-3000}:${APP_FRONTEND_PORT:-3000}'
restart: always
networks:
- react-express # frontend to backend connection
depends_on:
- backend
#
# B A C K E N D
# -------------
backend:
# backend, server, app internals
container_name: ${APP_NAME}-backend
# use the shared .env file for all 3 Tiers
```

* To start Frontend/Client, Backend/Server and Database Nodes/Containers:
```
docker compose up
```

* To start and force a rebuild from current source code:
```
docker compose up --build
```

* To watch the console of any of the Containers (Client-Server-Database):
```
docker logs -f
```
* ...or use the integrated Terminal in VS Code.