The backend for alya-smart-mirror
For using alya-smart-mirror you have to run the backend in the raspberry pi of the mirror or in any device connected to the same gatway as the app and Alya .
- Perquisites :
1-mongodb : make sure you have mongodb and run 'mongod' in the terimnal
2-AWS IoT : make sure you have configured AWS IoT as shown here.
- usage :
download the project then do the following commands :
$ npm install
$ node index.js
The backend provide the communication between the mirror and the app and it also handle the data management for the users , user addons and for the addons settings.
- General scenario
- All detailed scenario here
The backend is built on nodejs and it uses some services such as mongodb for handling the database and bcrypt for password encryption . For the communication we are using HTTP endpoints , socket and aws mqtt as in the picture below :