Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gjuliao/url_shortner
rails url_shortner
https://github.com/gjuliao/url_shortner
Last synced: 16 days ago
JSON representation
rails url_shortner
- Host: GitHub
- URL: https://github.com/gjuliao/url_shortner
- Owner: gjuliao
- Created: 2023-08-25T22:39:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-19T16:06:15.000Z (over 1 year ago)
- Last Synced: 2024-10-10T03:02:15.709Z (4 months ago)
- Language: Ruby
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Url shortner!
#### An app to keep track of url clicks.
#### Allows users to add the links they want to keep track with and the details of history clicks and OS system.
## Ruby Version
ruby "3.2.0"# Rails version
"rails", "~> 7.0.6"## How it works
- Users can post a url link to keep track of it.
- The app provides with a custom url link to share around different networks.
- Users can follow the track of analytics## Structure
#### Ruby on Rails in a classic MVC pattern. Devise is used for user authentification. SQLite database.to start:
`bundle install, rails db:migrate`, `rails db:seed`, `rails s`### Controllers
- **Clicks**: for when users want to add 'clicks' to a specific URL.
- **Links**: Manages the added links the user has created.### Models
- **clicks**: just updates the clicks count
- **links**: creates the custom url link and what type of URL it allows to process through.### Views
Much as one would expect. Notable files:
- **links/index** has the form for posting a new url and shows the click analytics of each url.