Go to file
Adam Townsend 1822004460
Gitea Bucky/url-shortener/pipeline/head There was a failure building this commit Details
use the hostname of the artifacts repository
2023-12-19 07:58:59 -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 removed extra line 2023-12-18 20:19:55 -08:00
Gemfile.lock updated Gemfile with falcon instead of puma 2023-12-18 20:15:33 -08:00
Jenkinsfile use the hostname of the artifacts repository 2023-12-19 07:58:59 -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 v1.0.1 2023-12-18 20:16:52 -08: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