Giter VIP home page Giter VIP logo

laravel-url-shortener's Introduction

Note that this project is no longer being maintained and I had developed it while I was getting my head around Laravel and now I notice a lot of things that could have been done the better way.

#RasP.is RasP.is is a URL shortener built on top of Laravel 4. It is not only a URL shortener but also a URL manager that allows the registered users to save and shorten their bookmarks with nice descriptions. Before we go ahead with the detail on how to use it, below is the overview of thee features that RasP.is provides.

#Overview

  • It has a user's module that allows the users to register for an account, login and manage their profile
  • Unregistered users may shorten their URLs from the homepage of the site.
  • Registered users can not only shorten their URLs but also keep a record of their shortened URLs, save bookmarks.
  • For the shortened URLs, the controller does a 301 redirect, which is the recommended type of redirect for maintaining maximum google juice to the original URL.
  • A unique 6 character alphanumeric code is generated for each shortened link
  • Registered users can check the number of times their URL was accessed through the shortened URL.
  • Just so you know, there are places where use of Javascript would have been a better choice (like form submissions etc.) but I have tried to do everything using Laravel so you might not see that much use of Javascript.

#How to setup Follow the below steps to get it working locally

  • Clone the repository
  • Copy it where your webserver may be able to access it.
  • Run the following command inside the project directory
composer install
  • Now go to mysql and create the database named raspis
  • Head to the app/config/database.php and enter your database settings
  • Now go to app/config/raspis.php and for the url key provide the url that will be prefixed with the shortcode. Probably the URL through which you can access the project. I had virtual servers setup so I put raspis.loc, you may replace it with localhost/raspis-url-shortener/ or whatever the name of the project directory is. However, don't forget the trailing slash.
  • Head back to the project directory and perform the following command
php artisan migrate
  • That's it, you are all set up ...start shortening your URLs.

#Contribute You are welcome to contribute. You may do it so by following steps

  • Clone the repository
  • Add some features or improve the existing ones
  • Open up a pull request

Also please do report the bugs that you may find by opening an issue or hit me by an email at [email protected]

laravel-url-shortener's People

Contributors

clarkeash avatar kamranahmedse avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.