This application provides a solution for tracking and redirecting links. Built using Ruby on Rails and utilizing a SQLite database for simplicity, the application offers a seamless way for clients to generate, track, and analyze tracking links.
Clone the project
git clone https://github.com/mvare007/Link-Tracker.gitGo to the project directory
cd Link-TrackerInstall ruby 3.3.1 using rbenv
rbenv install 3.3.1Set the local ruby version to 3.3.1
rbenv local 3.3.1Install gems
bundle installSetup the database and migrations
rails db:prepareStart the server
rails serverThis project uses Swagger for API documentation. To view the complete API reference:
Start the server and navigate to /api-docs in your browser.
For example, if running the server locally on port 3010, visit:
http://localhost:3010/api-docs
Important: Make sure you run it on localhost and not from 127.0.0.1 or else you will run into a CORS error.
The Swagger UI provides an interactive interface where you can explore all available endpoints, their parameters, request bodies, and response schemas. You can also test the API directly from this interface.
Swagger UI does not follow redirects, but you can observe them in your browser's developer tools. To fully test and observe redirects, use your browser.