Skip to content

Cloud API to serve as communication between Morpheus and clients, and communication with database. Will also run Machine Learning functions.

License

Notifications You must be signed in to change notification settings

hedwig-project/API

Repository files navigation

cloud

MIT License

Cloud server responsible for authentication and authorization, persisting and retrieving collected data and establishing a real-time communication between applications and homes.

Requirements

  • Node
  • npm
  • Redis (or just use the docker-compose configuration available)

What's inside

  • 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

Setup

Clone the repository and install the dependencies using npm install. Set up your environment variables based on the .env.sample file.

Run it

Use npm start to run the development server.

Production

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

License

MIT

About

Cloud API to serve as communication between Morpheus and clients, and communication with database. Will also run Machine Learning functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •