Files
bit/README.md
T
Juan Rodriguez f63be42b4c feat: Create users
Users migration, model, controller. user_id to links. signup view
2021-06-14 08:24:34 -05:00

750 B

URL shortener

How to run

Development

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

Testing

  • Run tests
docker-compose run --rm app bundle exec rails test

Rubocop

docker-compose run --rm app rubocop 

TODO

  • 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)
  • Setup Redis for production cache_store