gSchool / url-shortener-solution

The solution for the URL shortener gSchool exercise.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Shortener

Development

  1. bundle install
  2. Create a database by running psql -d postgres -f scripts/create_database.sql
  3. Run the migrations in the development database using sequel -m migrations postgres://gschool_user:password@localhost/url_shortener_development
  4. Run the migrations in the test database using sequel -m migrations postgres://gschool_user:password@localhost/url_shortener_test
  5. rerun rackup
    • running rerun will reload app when file changes are detected
  6. Run tests using rspec spec.

Migrations on Heroku

To run the migrations on heroku, run heroku run 'sequel -m migrations $HEROKU_POSTGRESQL_TEAL_URL' --app gschool-url-shortener-staging or heroku run 'sequel -m migrations $HEROKU_POSTGRESQL_AQUA_URL' --app gschool-url-shortener-prod

About

The solution for the URL shortener gSchool exercise.

License:Other


Languages

Language:Ruby 88.4%Language:CSS 11.6%