Code Monkey home page Code Monkey logo

cut's Introduction

cut - URL shortener

Description

A very simple URL shortener, makes use of rewrite_mod (Apache), PHP, mySQL and AngularJS. You can find a demo instance here: http://cut.phishy.de/

Requirements

Before you try to install Cut, make sure that following requirements are fulfilled:

  • Apache and activated rewrite_mod
  • PHP
  • mySQL or something equivalent

Installation

  1. Create a table in your mySQL Database with the SQL Statement from the file "CREATE_TABLE.sql". Maybe you want to rename the database, before you create it.
  2. After table creation open the file "api.php". In the middle of the file is the method "getDB()". Type in the database connection credentials. Don't forget to change the DB name if you changed it in step 1!
  3. Now open the file "main.js". In the urlCutController you can find the variable $scope.domain. You need to change it to your domain.
  4. Done.

cut's People

Contributors

christianmalek avatar menzerath avatar

Stargazers

 avatar

Watchers

 avatar  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.