Files
bit/README.md
T
Juan Rodriguez cebdfb35d7 fix: parsed_url + stripped_url
- store and redirect urls without protocol
- update README
- increment counter with SQL COALESCE
- add linksHelper
- update tests
2023-03-27 09:53:09 +02:00

1015 B

URL shortener

image

Features

  • Create link model (make sure to create a index for the slug and click counter)
  • Generate unique slug
  • Link unit tests
  • Stimulus setup
  • Link controller (handle redirection)
  • Main page with input box
  • Create user model
  • User unit tests
  • Add userId key to link model
  • Login and logout (sessions)
  • User links view
  • Modals layout
  • Deployment CI

How to run

Development

  • Run migrations
docker-compose up -d db
docker-compose run --rm app bundle exec rails db:migrate
  • Run
docker-compose up

Testing

docker-compose run --rm app bundle exec rails test

Rubocop

docker-compose run --rm app bundle exec rubocop 

Dokku deployment

 bundle exec rails db:migrate

https://url-shortener.sjdonado.de