https://github.com/yuler/rails-shortener
https://github.com/yuler/rails-shortener
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuler/rails-shortener
- Owner: yuler
- Created: 2023-11-07T16:44:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T10:55:47.000Z (over 2 years ago)
- Last Synced: 2025-04-06T12:13:19.488Z (about 1 year ago)
- Language: Ruby
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rails shortener
> A url shortener power by rails,
## Stack
- Deploy by [kamal](https://kamal-deploy.org/)
## Note
- This repo is for learn rails from [Build a URL Shortener with Rails 7](https://gorails.com/series/build-a-url-shortener-with-rails-7). [YouTube](https://www.youtube.com/watch?v=XHRUjXUcr04&list=PLm8ctt9NhMNXOBboD4FvLdZU_Cner2uk0&index=1), [Source Code](https://github.dev/gorails-screencasts/url-shortener)
## Related
-
-
-
-
## Kamal
```bash
kamal app exec -i 'bin/rails console'
```
## API
```bash
TOKEN=xxx # https://yuler.cc/djtjA6bOM1
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"link": {"url": "https://github.com/yuler"}}' https://yuler.cc/api/links
curl -H "Authorization: Bearer $TOKEN" https://yuler.cc/api/links
```
## TODO
- [ ] Fix cookies['link_form_url'] not work
- [ ] Design Home Page
- [ ] Add widget for other site embed