Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

StalemateInc/url_shortener

Repository files navigation

URL Shortener Application

An appication, which gets an url string and (possibly) shortens it. Kinda mimics the functionality of 'bit.ly' service. Requisites:

  • Ruby version: 2.5.3
  • Rails version: 5.2.2.1

How to configure the project:

  • bundle install
  • yarn install
  • Create a file called 'application.yml', with key/value pairs of URL_SHORTENER_DATABASE_USERNAME and URL_SHORTENER_DATABASE_PASSWORD inside.
  • rails db:create
  • rails db:migrate (optionally - rails db:seed)
  • Download a GeoLite2 Country MinMax DB from here and place it into db folder inside the project.
  • foreman start -f Procfile.dev
  • Navigate to localhost:5000 to start using the app.

Server-side analysis of visits by country - rake visits:analyze

Happy shortening!

About

Url Shortener Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published