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.
- Host: GitHub
- URL: https://github.com/microcodeincorporated/scrutiny.net
- Owner: MicroCODEIncorporated
- License: mit
- Created: 2023-09-01T13:52:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-01T13:53:58.000Z (almost 3 years ago)
- Last Synced: 2023-09-02T11:41:35.105Z (almost 3 years ago)
- Language: JavaScript
- Size: 628 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.