/shortener-url

Shortener url is system to shortener url.

Primary LanguageRuby

Shortener url

Shortener url is system to shortener url.

Overview

The software consists:

  • CRUD to User (with authentication) and shortener url write in Ruby on Rails 6.

Dependencies

  • Ruby version

  • System dependencies

    • All dependencies are available at Gemfile.

To run

  • Local

    $ bundle install
    $ rails s
  • Docker-compose

    $ docker-compose up --build
  • Docker hub

    $ docker pull danilovbarbosa/test-shortner-url:0.1.0
    $ docker run -it -p 80:3000 --name test-shortner-url danilovbarbosa/test-shortner-url:0.1.0
  • Database creation

    $ rails db:create
    $ rails db:migrate
    $ rails db:seed
  • How to run the test suite

    • Rspec (model, controller, ...)

      $ rspec