Cloud server responsible for authentication and authorization, persisting and retrieving collected data and establishing a real-time communication between applications and homes.
- socket.io for real-time communication between apps and home controllers
- Express to build the server and REST API
- Mongoose as a MongoDB ORM
- JWT and Passport for authentication
- [ESLint][eslint] for linting
- Nodemon for development
Clone the repository and install the dependencies using npm install. Set up your environment variables based on the .env.sample file.
Use npm start to run the development server.
We recommend using a process manager such as pm2, for which we have an available ecosystem.config.js file to store production configuration.
pm2 start ecosystem.config.js --env production
MIT