See MOSFITECH API DOCS for detailed instructions on how to get started with our project.
To get the whole environment up locally (without Docker), you need to install and configure multiple technologies like:
- Mongodb
- Mosquito Mqtt
- Redis
- Nodejs
It is complex, that is why we recommend using Docker.
-
Copy the environment file, and edit variables, domain name, etc
cp env.example .env -
Start basic services (recommended)
In a new terminal window do:
docker-compose up app dbSee the
docker-compose.ymlfiledepends_on:section to see which containers depend on which.Available containers:
mongo- mongodbrediswebcontainer which tries to get a certificate with Lets Encrypt.mqttEMQ + management interface on http://localhost:18083 admin:publicmqtt-taska rake task which subscribes to themqttservice
Start ALL of them (not recommended) with:
docker-compose up
- SSH into the server
git pulldocker-compose builddocker-compose up -d
Currently using this tool to manually handle versioning: https://github.com/gregorym/bump
Use this command to update the VERSION file + create a git tag
bump patch --tag
Then push the git tag with:
git push --tags
Part Of Mosfitech
This project is licensed under MIT.