/vapi-server

A Node.js server for the final project of the computer engineering course of IPLeiria

Primary LanguageCSSMIT LicenseMIT

VAPi Server

This project uses Motion to detect movement and to save a picture of that movement. Then receives, by websocket, the node-object-detection (Yolo) analysis with the objects detected in that picture. This information is saved in the database so it can be displayed to the user on the angular web interface.

Prerequisites

Getting started

Run MariaDB docker container

docker-compose -f mariadb/docker-compose.yml up -d

Run angular in development

cd angular
npm install
npm start	

Run Node.js server

npm install
npm start

Deployment

Run MariaDB docker container

docker-compose -f mariadb/docker-compose.yml up -d

Build angular files for deployment

cd angular && npm install && npm run deploy

Run Node.js server

npm install
npm start

Config Files

Database configurations

ormconfig.json

Geral configurations

config.json

Motion configurations

motion/motion.conf