Giter VIP home page Giter VIP logo

urlshortener's Introduction

Url Shortener

Rút gọn link sử dụng framework laravel

Cài đặt và sử dụng

  1. Upload code
  2. Chạy composer install
  3. Chạy php artisan migrate
  4. Chạy php artisan user create --email="Your email" --name="your name"

Ví dụ:

php artisan user create [email protected] --name="Nguyen Thanh"

Bạn sẽ nhận được kết quả như sau

create
User created successfully! id:1
Name: Nguyen Thanh
Email: [email protected]
Password: UvrEdU8PBP4H7vo0
Api key: 45S0cnTWChFYDM5NaKRU9dcOzmvUeHMsDzTXbC98

Bạn lưu lại api key để sử dụng.

Để rút gọn link bạn sử dụng api:

domain.com/api/v1/short?apiKey={apikey}&longUrl=https://your_long_url_here

Với tham số apiKey chính là api key nhận được ở bên trên. Kết quả trả về sẽ ở dạng json

{ id: http://shorted_url}

urlshortener's People

Contributors

4iteam avatar

Watchers

James Cloos avatar Hieupv 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.