Go to file
Adam Townsend 213265a5d0 added test for submitting with the wrong content type header 2023-10-12 23:30:47 -07:00
db/migrations got app working reasonably well, and removed db file, that shouldn't be in the db 2023-09-14 22:30:33 -07:00
features split homepage out into homepage and submit feature sets 2023-10-10 17:29:23 -07:00
spec added test for submitting with the wrong content type header 2023-10-12 23:30:47 -07:00
views fixed vertical scrolling issue with page and margin top on main 2023-10-05 13:55:09 -07:00
.gitignore ignore the coverage directory from simplecov output 2023-10-04 11:28:07 -07:00
Gemfile added simplecov for collecting test results 2023-10-03 18:27:29 -07:00
Gemfile.lock added simplecov for collecting test results 2023-10-03 18:27:29 -07:00
Jenkinsfile build HTML output with cucumber and rspec files in root dir 2023-10-12 16:25:22 -07:00
README.md added tests stage to jenkinsfile and added a note to the readme about pkgconf 2023-10-06 20:00:04 -07:00
app.rb added rescue for urls that don't resolve 2023-10-12 19:03:03 -07:00
config.ru require the .env file to load ENV variables set in there 2023-10-03 15:58:01 -07:00
secret.rb generate secret in rb file 2023-10-06 18:07:07 -07:00

README.md

simple url shortener

this project is a simple solution to build out a URL shortener using 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.

the outside pieces of software that this project relies on are sqlite3 and pkgconf.

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'

then create a .env.rb file in the root directory that contains the following ENV attributes:

ENV["APP_SESSION_SECRET"] = {output of a random 64 byte secret}

ENV["DB_NAME"] = {db file name}

after the dependencies are installed, you have to create the db

sequel -m db/migrations sqlite://db/{DB_NAME}

to start the application with Falcon:

rackup -o {ip address} -p {port} -s falcon