added more startup instructions and updated gems to have a development group

pull/10/head
Adam Townsend 2023-10-02 14:22:26 -07:00
parent cb027e19c8
commit b90b400864
3 changed files with 28 additions and 10 deletions

14
Gemfile
View File

@ -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

View File

@ -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)

View File

@ -5,6 +5,20 @@ 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`