The purpose of this app is to expose an endpoint to record home events. In future releases I will have a Node Red integration.
How to run
Standard machine installation is simple. Make sure you have the following environment setup.
- Node: v7.4.0
- npm: v4.0.5
- mongodb: min v2.6.5 to v3.0.4
- Make sure you have all the right dependencies by running
- Setup your
.envfile. Just run
cp .env.example .env
- Make any changes to the configuration
- You can stage a user for authentication routes by running
To customize the user edit the
Running the Development Server
Don't want to pollute your local machine and have docker installed then simply use the provided bin scripts.
Run the server in a container
- Start the container,
- Find the container id,
- Add a user,
docker exec -it <api container id> node bin/stage.user.js