117 Commits

Author SHA1 Message Date
Juan Rodriguez 8c209f0036 test: services unit tests 2024-05-20 13:14:37 +02:00
Juan Rodriguez f03e0092c8 refactor: move cli methods to app service 2024-05-20 13:13:49 +02:00
Juan Rodriguez 89fa00b80b ci: missing env variables publish workflow 2024-05-20 13:07:31 +02:00
Juan Rodriguez 2c3bb8deaf chore: rename bruno folder 2024-05-20 11:46:10 +02:00
Juan Rodriguez de12095d19 ci: fix generate artifact attestation 2024-05-14 07:03:40 +02:00
Juan Rodriguez 0d053a042a Merge pull request #3 from sjdonado/refactor/upgrade-to-crystal
Refactor/upgrade to crystal
2024-05-14 06:37:19 +02:00
Juan Rodriguez be0ebd1763 test: fix Closed stream (IO::Error) 2024-05-14 06:34:29 +02:00
Juan Rodriguez aa8a84af0e ci: run tests workflow 2024-05-14 06:28:13 +02:00
Juan Rodriguez f28dfdfd89 Merge branch 'master' of https://github.com/sjdonado/url-shortener into refactor/upgrade-to-crystal 2024-05-14 06:24:30 +02:00
Juan Rodriguez a7d52797d9 ci: publish to docker hub workflow 2024-05-14 06:21:55 +02:00
Juan Rodriguez 80a91583fe ci: move binaries to path 2024-05-14 06:21:13 +02:00
Juan Rodriguez abb35019f3 ci: Dockerfile + docker-compose 2024-05-14 05:50:28 +02:00
Juan Rodriguez adbc07e605 feat: migrate script 2024-05-14 05:50:13 +02:00
Juan Rodriguez 814fd83d32 test: ping spec 2024-05-13 22:59:22 +02:00
Juan Rodriguez a8e2e971d6 test: integration link spec
- spec_helper (spec-kemal setup)
- spec_helper (micreate migration)
- create_test_link + get_test_link + delete_test_link helpers
- fix test env variables
2024-05-13 22:57:13 +02:00
Juan Rodriguez 6b21bc0cd6 feat: cli create_user + list_users + delete_user 2024-05-13 22:56:06 +02:00
Juan Rodriguez a47722cd54 refactor: Link serializer - refer attr 2024-05-13 22:54:49 +02:00
Juan Rodriguez 7f2a27ec79 feat: auth middleware
- CORS headers
- Get all links that belong to user
2024-05-13 22:35:22 +02:00
Juan Rodriguez 0ad534065c feat: user migration + model
- link belongs to user
- user api_key index
2024-05-13 22:33:38 +02:00
Juan Rodriguez 80feadfbd2 feat: delete link 2024-05-13 22:30:44 +02:00
Juan Rodriguez ded84e7fa5 feat: update link 2024-05-13 10:15:08 +02:00
Juan Rodriguez 8400e5fe71 chore: bruno collection (create link) 2024-05-13 09:30:30 +02:00
Juan Rodriguez b20417d579 refactor: error handling return exception message 2024-05-13 09:22:36 +02:00
Juan Rodriguez 9564559610 refactor: rename src folder with app 2024-05-13 08:14:47 +02:00
Juan Rodriguez e4ae0c2ac4 feat: link uuid + increase counter concurrently 2024-05-13 08:08:20 +02:00
Juan Rodriguez b34a52f3e0 feat: redirect by slug 2024-05-12 23:21:14 +02:00
Juan Rodriguez c806953b9a feat: create links - route + controller + model + migration 2024-05-12 22:50:47 +02:00
Juan Rodriguez 3e86e761b6 chore: database setup crecto + micrate 2024-05-12 22:40:11 +02:00
Juan Rodriguez b7b47b133d feat: ping route + controller 2024-05-12 21:25:57 +02:00
Juan Rodriguez db42ed2b24 feat: kemal setup 2024-05-12 18:35:45 +02:00
Juan Rodriguez 9e1fcf2d48 chore: kemal + crystal setup 2024-05-12 15:08:09 +02:00
Juan Rodriguez 720b70c6a0 chore: remove rails app 2024-05-12 15:07:56 +02:00
Juan Rodriguez a77ef21d45 Update README.md 2024-01-31 08:26:53 +01:00
Juan Rodriguez 8eb27f2c8a chore: replace sjdonado.de with donado.co 2024-01-31 05:27:46 +01:00
Juan Rodriguez 7a095fb045 ci: deploy to sjdonado.de with dokku 2023-04-19 17:07:33 +02:00
Juan Rodriguez f74ec3af20 fix: validate domains, allow only google.com + sjdonado.de for demo purposes (to avoid phishing scam) 2023-04-19 17:07:05 +02:00
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
Juan Rodriguez af9c7b0024 feat: meta tags 2023-03-26 21:50:19 +02:00
Juan Rodriguez 211e4f40f4 refactor: improve url regex 2023-03-26 19:37:29 +02:00
Juan Rodriguez fee04cc26d chore: remove heroku from Github actions 2023-03-26 19:03:04 +02:00
Juan Rodriguez 63acab3cf7 Dokku deploy setup (#1)
* fix: remove config.key from Dockerfile

* refactor: remove redis

* chore: update README

* feat: precompile assets on build Dockerfile
2023-03-26 19:00:09 +02:00
Juan Rodriguez 38ce72618a fix: 🐛 save sessionUsername in localStorage 2021-06-16 10:24:33 -05:00
Juan Rodriguez e3ab670eac ci: 💚 enable rubocop-rails support 2021-06-15 15:39:44 -05:00
Juan Rodriguez 73b674b613 refactor: Username and slug unique indexes, before actions for set link and user
confirm_password_validation around action, unnecessary helpers removed, rubocop-rails suggestions applied

Add username index and unique slug index migrations
2021-06-15 15:24:34 -05:00
Juan Rodriguez 9204abf2e3 refactor: 🔥 Generate slug with attempts
Link short method removed, generate_slug test added, deleted unused files
2021-06-15 12:08:01 -05:00
Juan Rodriguez 391c62e99a ci: 💚 Rubocop step added to main workflow 2021-06-15 10:48:29 -05:00
Juan Rodriguez e9e7c22bfc refactor: 📱 Responsive modals and meta tags 2021-06-15 06:51:19 -05:00
Juan Rodriguez 06dfd59753 fix: 💚 Enable public file server in production 2021-06-14 19:38:18 -05:00
Juan Rodriguez d404cbf3b8 ci: 💚 Create master.key, Dockerfile precompile assets, uglifier harmony true 2021-06-14 18:50:51 -05:00
Juan Rodriguez 33eb56f686 ci: 👷 Github actions setup, heroku deployment
Redis cache store, Production Dockerfile, Github actions workflow
2021-06-14 17:14:48 -05:00