grayhound / devicer

A NestJS tutorial. About NestJS and its flaws. About testing with Nest and Jest. About docker. About coding. All-in-one.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Devicer

Introduction

So what's a "Devicer"? This is a small application that will be available to get data from sensors of different devices.

For example, you have a device that has "Thermometer" sensor, that measures room temperature and "Hygrometer" sensor that measures room humidity.

And you want to get the data from the device every second and show it to the user as a dataset and realtime.

That's why we will create a devicer. This will be a combine of microservices that will include:

  • Basic micro-services with REST API
  • MQTT receiver to get data from devices
  • Websocket server to show real-time data
  • Frontend application based on ReactJS

Stack

In this tutorial we will use:

Command shortcusts

Frequent CLI commands:

run development server: npm run start:dev

generate new migrations with %migration_name% name: npm run migrations:generate -- src/migrations/%migration_name%

run migrations: npm run migrations:run

run end-to-end tests: npm run test:e2e

About

A NestJS tutorial. About NestJS and its flaws. About testing with Nest and Jest. About docker. About coding. All-in-one.


Languages

Language:TypeScript 97.9%Language:Shell 1.4%Language:JavaScript 0.7%