Go to file
Adam Townsend 2c7a18c374
Gitea Bucky/url-shortener/pipeline/head This commit looks good Details
create the directory before syncingit
2023-12-18 18:38:18 -08:00
db/migrations frozen string literal for rubocop 2023-10-22 13:06:12 -07:00
features require capybara and rspec parts needed for tests to run instead of 2023-10-22 13:14:23 -07:00
spec rubocop formatting fixes 2023-10-22 13:07:07 -07:00
views fixed vertical scrolling issue with page and margin top on main 2023-10-05 13:55:09 -07:00
.gitignore updated README, swapped Falcon for Puma for now, and ignored more files 2023-10-17 21:53:12 -07:00
.rubocop.yml custom parts for rubocop to run. don't worry about block length in many 2023-10-22 13:15:09 -07:00
Gemfile moved bundle-audit inside test group, added version file 2023-10-24 17:53:56 -07:00
Gemfile.lock added bundle-audit and ruby_audit gems 2023-10-22 15:48:40 -07:00
Jenkinsfile create the directory before syncingit 2023-12-18 18:38:18 -08:00
README.md updated README, swapped Falcon for Puma for now, and ignored more files 2023-10-17 21:53:12 -07:00
VERSION moved bundle-audit inside test group, added version file 2023-10-24 17:53:56 -07:00
app.rb rubocop autofixed formatting 2023-10-22 13:13:27 -07:00
config.ru rubocop added frozen string literal comment 2023-10-22 13:14:02 -07:00

README.md

simple url shortener

this project is a simple solution to build out a URL shortener using Roda, Puma, Sequel, and SQLite on a FreeBSD Jail

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 rbenv, ruby-build, sqlite3, and pkgconf.

first you have to install the dependencies:

bundle install

if you want to skip the test dependencies:

bundle config set --local without 'test'

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_NAME}

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

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

to start the application with Puma:

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

to run it as a daemon:

rackup -o {ip address} -p {port} -D