- remove old recipe whatnot
- create model for temperature and humidity data
- save data from Arduino into database
- pull data from the database and display
- make it pretty
- socket.io updates
Since this is a mix of a couple things, I have two terminals running watches: one running npm run dev
and another running webpack --watch
.
A sample database is located in /db/prod/dht
. Load it into localhost
Mongodb as dht
.
At the time of writing, D3 had just released v4 that is not backwards compatible with v3. I used this handy dandy guide to the API changes to make the switch.
This app was built using the node express and mongoose boilerplate. (This is an example app using the boilerplate.) It was modified to use React templates in the backend and reorganized to share those templates with the frontend.
See boilerplate readme below.
A boilerplate application for building web apps using express, mongoose and passport.
Read the wiki to understand how the application is structured.
$ git clone https://github.com/madhums/node-express-mongoose.git
$ cd node-express-mongoose
$ npm install
$ npm start
Add routes (config/routes.js
), create models (app/models/
), views (app/views/
) and controllers (app/controllers/
).
Checkout the apps that are built using this approach
MIT