diff --git a/.gitignore b/.gitignore index cde2416..9aed020 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ tmp/ log/thin.log *.swp +node_modules/ diff --git a/Gemfile b/Gemfile deleted file mode 100644 index 2ecf02b..0000000 --- a/Gemfile +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -source "https://rubygems.org" - -git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } - -gem "thin" -gem "sinatra" -gem 'rpi_gpio' diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 12152a9..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,31 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - daemons (1.3.1) - eventmachine (1.2.7) - mustermann (1.0.3) - rack (2.0.6) - rack-protection (2.0.5) - rack - rpi_gpio (0.3.3) - sinatra (2.0.5) - mustermann (~> 1.0) - rack (~> 2.0) - rack-protection (= 2.0.5) - tilt (~> 2.0) - thin (1.7.2) - daemons (~> 1.0, >= 1.0.9) - eventmachine (~> 1.0, >= 1.0.4) - rack (>= 1, < 3) - tilt (2.0.9) - -PLATFORMS - ruby - -DEPENDENCIES - rpi_gpio - sinatra - thin - -BUNDLED WITH - 2.0.1 diff --git a/readme.md b/README.md similarity index 100% rename from readme.md rename to README.md diff --git a/config.ru b/config.ru deleted file mode 100644 index b60cedc..0000000 --- a/config.ru +++ /dev/null @@ -1,3 +0,0 @@ -require File.expand_path '../main.rb', __FILE__ - -run Sinatra::Application diff --git a/config.yml b/config.yml deleted file mode 100644 index 840cd93..0000000 --- a/config.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -chdir: "/home/pi/led-hands-pri" -rackup: "/home/pi/led-hands-pri/config.ru" -user: pi -group: pi -environment: development -address: 0.0.0.0 -port: 3000 -timeout: 30 -log: "/home/pi/led-hands-pri/log/thin.log" -pid: tmp/pids/thin.pid -max_conns: 1024 -max_persistent_conns: 100 -require: [] -wait: 30 -threadpool_size: 20 -daemonize: true diff --git a/package.json b/package.json new file mode 100644 index 0000000..a49dd12 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "led-hands-pri", + "version": "0.0.0", + "description": "just an led service", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "ssh://git@git.markamoser.com:6791/mmoser/led-hands-rpi.git" + }, + "author": "", + "license": "ISC", + "dependencies": { + "rpi-gpio": "^2.1.3" + } +}