The application was created for the final project in the subject "Hypertext languages and web development".
The project was inspired by the "Frontend Mentor - URL shortening API landing page" challenge. The challenge itself has been expanded with additional pages [gallery of subpages] and its own short link creation system, where registered users can add, edit and delete their own links.
All of the following features use asynchronous query (AJAX):
- Creating shortened links (also by unregistered users)
- Editing the names of shortened links
- Removal of individual and all links
1. Clone this repository:
git clone https://github.com/KoTubA/URL-Shortener.git
or:
git clone git@github.com:KoTubA/URL-Shortener.git
2. Create SQL database:
Create your own database graphically or with the command:
CREATE DATABASE databasename;
Import the /setup/import.sql
file into the database you created.
3. Check the database connection configuration data:
The Database.php
file allows you to change the configuration of the connection with DB, its default configuration looks like this:
//Database.php
private $host = "localhost";
private $user = "root";
private $pass = "";
private $dbname = "shortly";
Link to demo: https://shortly.5v.pl/