Code Monkey home page Code Monkey logo

url-shortener-system's Introduction

URL Shortener System

Overview

This is a simple URL shortener application built with Laravel, allowing users to create short and shareable links for long URLs. The application provides features for URL shortening, redirection, click statistics, and user authentication.

Requirements

URL Shortening

  • Users can input long URLs via a web form.
  • Logic is implemented to generate short URLs for the provided long URLs.
  • Original long URLs and generated short URLs are displayed for reference.

Redirection

  • Short URLs redirect users to the original long URLs.

Statistics

  • The system tracks the click count for each short URL.
  • Users can view the click count for their shortened URLs.

User Authentication

  • User authentication is implemented.
  • Registered users can manage their shortened URLs and view click statistics.

Security

  • Data security and user privacy are ensured.
  • Proper input validation is implemented.
  • Protection against common web vulnerabilities is in place.

Optional

  • An API is provided for programmatically shortening URLs.

Installation

  1. Clone the repository.
git clone https://github.com/yourusername/url-shortener.git
  1. Navigate to the project directory.
cd url-shortener
  1. Install dependencies.
composer install
  1. Create a copy of the .env.example file and rename it to .env.
cp .env.example .env
  1. Generate an application key.

  2. Configure your database settings in the .env file.

  3. Run migrations and seed the database.

php artisan migrate --seed
  1. Install npm packages.
npm install
  1. Run the following command to build your assets.
npm run build
  1. Serve the application.
php artisan serve

Usage

  • Access the application and register/login.
  • Use the provided web form to shorten long URLs.
  • View and manage your shortened URLs and click statistics in the dashboard.
  • Access the API for programmatically shortening URLs.

Security Considerations

  • Ensure the .env file and sensitive information are properly secured.
  • Regularly update dependencies and Laravel framework for security patches.
  • Configure a secure environment for the application.

Contributing

Contributions are welcome!

License

This project is licensed under the MIT License.

url-shortener-system's People

Contributors

taraqr9 avatar

Watchers

 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.