TAPIoT is a project that can bring wisdom to your taps.
Tapiot is a sub-project under TAPIoT, which is the website and server part of TAPIoT.
- redis >= 3.0
- ruby >= 2.2
- mysql >= 5.5
- nginx >= 1.10
- rails >= 4.2
-
Clone this repository and install required gems.
$ git clone https://github.com/bdsword/tapiot.git $ cd tapiot $ bundle
-
Setup database configurations.
$ cp .env.example .env # edit .env and setup your database account and password
-
Setup ArduinoServer configurations.
$ cp arduino_server_configurations.sample.rb arduino_server_configurations.rb # edit arduino_server_configurations.rb and setup your server configurations
-
Setup ArduinoClientEmulator or removed it if you don't need.
# Option1. If you choose to use **ArduinoClientEmulator** $ cp arduino_client_emulator_configurations.sample.rb arduino_client_emulator_configurations.rb # edit arduino_client_emulator_configurations.rb and setup your server configurations # Option2. If you don't want to use **ArduinoClientEmulator** $ rm arduino_client*
-
Setup database and tables.
$ rake db:create $ rake db:migrate
-
Run all the services.
$ rails s # Start rails server, using WEBRick(for development only) $ bin/cable # Start ActionCable server $ rake arduino_server:start # Start ArduinoServer
Please check tapiot-arduino repository.