Giter VIP home page Giter VIP logo

shortenerofluis's Introduction

luiseugenio/shortenerofluis

Description

An application developed in Ruby. It accomplishes URL shortening and redirection from shortened URLs. With shortest possible length.

Requirements

This template currently works with:

  • Ruby 2.6.0
  • Rails 5.2.3
  • Sidekiq
  • PostgreSQL

Usage

Project details

  1. Strategy:
    1. Take the ID in the database of the URL and then convert it to either Base 36 [a-z0-9] (case insensitive) to generate shortened URL;
    2. I used ActiveJob to perform the title search in the background;
    3. I used gem Faker to populate the database for the Top 100 board;
    4. Performed Model, Request and Acceptance tests.
  2. Repository: https://github.com/luiseugenio/shortenerofluis
  3. Production server on Heroku:
    1. Host: https://vast-thicket-11159.herokuapp.com/
    2. Configuration File: Procfile

To execute in development mode:

rake db:create
rake db:migrate
rake db:seed
rspec spec
cucumber
rails s

To promote in production mode:

git push heroku master
  • The database supported by this app is postgresql.

What does it do?

The app will perform this actions:

  1. Index
get https://vast-thicket-11159.herokuapp.com/
  1. Generate Short URLs
get https://vast-thicket-11159.herokuapp.com/short_urls/new
  1. Un-Short Shortened URLs
get https://vast-thicket-11159.herokuapp.com/:shortened_url
  1. Show TOP 100 most visit links
https://vast-thicket-11159.herokuapp.com/short_urls/top_100

What is included?

These gems are added

  • Utilities
    • sidekiq – Redis-based job queue implementation for Active Job
    • faker – A library for generating fake data such as names, addresses, and phone numbers.
    • bootstrap – Build responsive, mobile-first projects on the web with the world's most popular front-end component library
    • mechanize – Mechanize is a ruby library that makes automated web interaction easy
  • Testing
    • capybara – Acceptance test framework for web applications
    • database_cleaner – Strategies for cleaning databases in Ruby.
    • cucumber-rails – Rails Generators for Cucumber with special support for Capybara and DatabaseCleaner
    • factory_bot_rails – is a fixtures replacement with a straightforward definition syntax, support for multiple build strategies
    • shoulda-matchers – Simple one-liner tests for common Rails functionality

shortenerofluis's People

Contributors

dependabot[bot] avatar luiseugenio avatar

Watchers

 avatar  avatar

shortenerofluis's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.