Juan Rodriguez e50da9b3e2 chore: 🔧 docker entrypoint for init db
docker-compose.test removed, create testing and dev databases on init db
2021-06-13 20:36:39 -05:00
2021-06-13 08:01:12 -05:00
2021-06-13 20:34:41 -05:00
2021-06-13 16:28:45 -05:00
2021-06-13 20:36:39 -05:00
2021-06-13 20:34:41 -05:00
2021-06-13 09:05:20 -05:00
2021-06-13 09:05:20 -05:00
2021-06-13 09:05:20 -05:00
2021-06-13 09:05:20 -05:00
2021-06-13 20:34:41 -05:00
2021-06-13 09:05:20 -05:00
2021-06-13 09:05:20 -05:00
2021-06-13 16:28:45 -05:00
2021-06-13 09:01:22 -05:00
2021-06-13 16:28:45 -05:00
2021-06-13 16:28:45 -05:00
2021-06-13 09:05:20 -05:00
2021-06-13 16:28:45 -05:00
2021-06-13 10:46:52 -05:00
2021-06-13 20:36:39 -05:00
2021-06-13 16:28:45 -05:00
2021-06-13 09:01:22 -05:00
2021-06-13 16:28:45 -05:00
2021-06-13 20:36:39 -05:00
2021-06-13 16:28:45 -05:00
2021-06-13 16:28:45 -05:00
2021-06-13 10:46:52 -05:00
2021-06-13 20:36:39 -05:00
2021-06-13 16:28:45 -05:00

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)
  • Cache with redis?
S
Description
Fast, lightweight, self-hosted URL shortener service with minimal click tracking
Readme MIT 59 MiB
Languages
Crystal 98.7%
Dockerfile 1.3%