https://github.com/uttesh/smart-sheet
Simple web app for the IOT device data collection and device dashboard instead of using the cloud service
https://github.com/uttesh/smart-sheet
dashboard-application docker docker-compose iot iot-application iot-device nestjs react webapp
Last synced: 2 months ago
JSON representation
Simple web app for the IOT device data collection and device dashboard instead of using the cloud service
- Host: GitHub
- URL: https://github.com/uttesh/smart-sheet
- Owner: uttesh
- Created: 2022-01-08T11:02:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-10T10:05:51.000Z (about 4 years ago)
- Last Synced: 2025-01-17T12:17:38.605Z (over 1 year ago)
- Topics: dashboard-application, docker, docker-compose, iot, iot-application, iot-device, nestjs, react, webapp
- Language: TypeScript
- Homepage:
- Size: 836 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# smart-sheet
Simple web solution to assist the testing of the IOT device development instead of using the cloud service
It's very simple application where we will add the device and send the device data to the smart-sheet to maitain the data in database and provide API to access those data.
# project structure
```
│ docker-compose.yml
│ README.md
|
├───smart-sheet-app
│ │ Dockerfile
│ │ yarn-lock
│ │ package.json
│ │
| ├───node_modules
│ ├───public
│ │ index.html
│ |
│ └───src
│ App.css
│ App.tsx
│ index.tsx
│
├───nginx
│ default.conf
│ Dockerfile
│
└───smart-sheet-service
│ │ Dockerfile
│ │ yarn-lock
│ │ package.json
│ │
| ├───node_modules
│ ├───src
```
## Docker-compose
Using the docker compose to bring up the front ent and back end API server along with the MongoDB, Nginx server as well.
build and run
```
> docker-compose up --build
```
use -d flag for run as background
```
> ./run.sh
```
# eclipse-mosquitto configuration
### Setup and configuration
Follow the steps as per the docker hub document: https://hub.docker.com/_/eclipse-mosquitto
1. Docker full image:
```
docker pull eclipse-mosquitto
```
2. Create volumes:
```
/mosquitto/config
/mosquitto/data
/mosquitto/log
```
3. run the docker
```
> docker run -it -p 1883:1883 -p 9001:9001 -v mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto
```