diff --git a/Gemfile b/Gemfile index 6b6e103..1eb759a 100644 --- a/Gemfile +++ b/Gemfile @@ -10,14 +10,18 @@ gem "sequel", "~> 5.72" gem "tilt", "~> 2.2" -gem "cucumber", "~> 9.0" - gem "sqlite3", "~> 1.6" gem "erubi", "~> 1.12" -gem "capybara", "~> 3.39" +group :development do -gem "rspec", "~> 3.12" + gem "cucumber", "~> 9.0" -gem "selenium-webdriver", "~> 4.13" + gem "capybara", "~> 3.39" + + gem "rspec", "~> 3.12" + + gem "selenium-webdriver", "~> 4.13" + +end diff --git a/Gemfile.lock b/Gemfile.lock index d856b94..40a0be3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -79,7 +79,7 @@ GEM process-metrics (~> 0.2.0) protocol-rack (~> 0.1) samovar (~> 2.1) - ffi (1.15.5) + ffi (1.16.2) fiber-annotation (0.2.0) fiber-local (1.0.0) io-event (1.3.2) @@ -92,7 +92,7 @@ GEM nokogiri (1.15.4) mini_portile2 (~> 2.8.2) racc (~> 1.4) - openssl (3.1.0) + openssl (3.2.0) process-metrics (0.2.1) console (~> 1.8) samovar (~> 2.1) @@ -136,13 +136,13 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) - sequel (5.72.0) + sequel (5.73.0) bigdecimal sqlite3 (1.6.6) mini_portile2 (~> 2.8.0) sys-uname (1.2.3) ffi (~> 1.1) - tilt (2.2.0) + tilt (2.3.0) timers (4.3.5) traces (0.11.1) websocket (1.2.10) diff --git a/README.md b/README.md index 560106e..cd93b2e 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,19 @@ Roda, Falcon, Sequel, and SQLite the point of this project is to quickly build something and work on continuous deployment while making small refinements to the functional pieces. -before running the server, you must build the database by running the following: + +first you have to install the dependencies: + +`bundle install` + +if you want the development group included run this first: + +`bundle config set --local with 'development' + +after the dependencies are installed, you have to create the db `sequel -m db/migrations sqlite://db/url_shortener.db` + +to start the application with Falcon: + +`rackup -o {ip address} -p {port} -s falcon`