Files
bit/README.md
T
Juan Rodriguez a77ef21d45 Update README.md
2024-01-31 08:26:53 +01:00

961 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