A simple application to shorten long URLs, similar to Bitly.
- Generate shortened links from long URLs.
- Generate QRCode from shortened links.
- Redirect to the original URL when a shortened link is clicked.
- Basic statistics for each shortened link (number of clicks, etc.).
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Ruby on Rails installed on your computer.
- Clone the repository to your local machine
git clone https://github.com/tuanle03/Link-Shortener.git
- Change into the project directory
cd Link-Shortener
- Install the dependencies
bundle install
- Create the database
rails db:create
- Run the migrations
rails db:migrate
- Start the development server
rails s
- Open your browser and go to
http://localhost:3000
to view the app.
The app can be easily deployed to a hosting service such as Heroku or AWS. Please refer to their respective documentation for more information.
- Ruby on Rails - Backend
- SQLite3 - Database
- Haml/CSS/JS - Frontend
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch
gcb [branch name]
- Add your file changes
git add [file change]
- Commit your Changes
git commit -m "message"
- Push to the Branch
gpsup
- Open a Pull Request