Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christianmalek/cut
A very simple URL shortener, makes use of rewrite_mod (Apache), PHP, mySQL and AngularJS
https://github.com/christianmalek/cut
Last synced: about 5 hours ago
JSON representation
A very simple URL shortener, makes use of rewrite_mod (Apache), PHP, mySQL and AngularJS
- Host: GitHub
- URL: https://github.com/christianmalek/cut
- Owner: christianmalek
- License: mit
- Created: 2014-04-13T13:47:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-02T21:53:43.000Z (about 8 years ago)
- Last Synced: 2023-08-12T06:36:55.681Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.