Skip to content

lsarni/url-shortener

Repository files navigation

URL Shortener

Small Rails project that given a url it returns a shorter version that redirects to the original one.

Deployed at https://shrt-gf.herokuapp.com/

Prerequisites

  • Ruby: 2.7.0
  • PostgreSQL

Install

Clone the repository

git clone git@github.com:lsarni/url-shortener.git
cd shortener

Install dependencies

Using Bundler:

bundle install

Set environment variables

Create a copy of .env.exampl and rename it to .env.

Fill out any missing fields with the correct information.

Initialize the database

rails db:create db:migrate

Serve

rails s

Test

rspec -fd

About

Rail project to shorten urls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published