- This is a basic rails app that takes in a url and generates a shortened url. The returned shortened url will redirect you to the original url.
- Created using Rails 5.1.6, Ruby 2.4.1, & Postgres 9.6. Also using the Gem (valid_url) for url validation.
- Please make sure you have Bundler & Postgresql installed.
- Clone & cd into this repo then run
bundle install
. - Create your database:
rake db:create
. - Run the migrations:
rake db:migrate
. - Setup test database:
rake db:test:prepare
- Run
rails s
to start the server. - Navigate to
localhost:3000
in your favorite web browser. - To run tests:
rspec
.