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

https://github.com/brianttn/esp32httpsclient-express-mongodb

The real-time online platform integrating ESP32、Express routing and MongoDB allows you to easily monitor the temperature and humidity of the surrounding environment.
https://github.com/brianttn/esp32httpsclient-express-mongodb

c certificate deployment esp32 express https-client javascript mongodb mongoose nodejs railway-deployment

Last synced: 10 months ago
JSON representation

The real-time online platform integrating ESP32、Express routing and MongoDB allows you to easily monitor the temperature and humidity of the surrounding environment.

Awesome Lists containing this project

README

          

Real-time temperature and humidity monitoring system



Explore the website


## Table of contents

- [About the Project](#about-the-project)
- [System implementation episode 1:ESP32](#system-implementation-episode-1esp32)
- [System implementation episode 2:Express](#system-implementation-episode-2express)
- [System implementation episode 3:mongoose & MongoDB](#system-implementation-episode-3mongoose--mongodb)
- [System implementation episode 4:Deploy to Railway platform](#system-implementation-episode-4deploy-to-railway-platform)

## About the project

The real-time online platform integrating ESP32、Express routing and MongoDB allows you to easily monitor the temperature and humidity of the surrounding environment.

## System implementation episode 1:ESP32

ESP32 is mainly responsible for:

- Connect to WiFi.

- Make a https post request:
- Send the https request headers and request body
- Set up railway server certificate

- Capture temperature and humidity information through DHT11 sensor.

- Process and send the temperature and humidity data in JSON format to MongoDB.

***ESP32_ArduinoIDE_ExecutionScreenshot***:

![ESP32_ArduinoIDE_ExecutionScreenshot](ESP32_ArduinoIDE_ExecutionScreenshot.PNG)

## System implementation episode 2:Express

Express is mainly responsible for:

- Create web application routes.
- Create EJS webpage.
- Executing middlewares.
- Receive and process https post request.

***EJS_WebPage***:

![EJS_WebPage](EJS_WebPage.PNG)

## System implementation episode 3:mongoose & MongoDB

mongoose & MongoDB are mainly responsible for:

- Create database schema and model.
- Connect to MongoDB server.
- Collaborate with Express for CRUD operations.

***MongoDB_Compass_ExecutionScreenshot***:

![MongoDB_Compass_ExecutionScreenshot](MongoDB_Compass_ExecutionScreenshot.PNG)

## System implementation episode 4:Deploy to Railway platform

***Railway_GitProjectDeploy***:

![Railway_GitProjectDeploy](Railway_GitProjectDeploy.PNG)

***Railway_MongoDBDeploy***:

![Railway_MongoDBDeploy](Railway_MongoDBDeploy.PNG)