Skip to content

• Shortens link and customize it according to user’s need.

License

Notifications You must be signed in to change notification settings

apoorvaron/Shorty

Repository files navigation

 Shorty - To help you shorten links!

To help you grow, scale, and dominate through the power of link management. Whether you’re sharing one link or millions, Shorty lets you personalize, share, and track your content links, while capturing data with every click.



Maintainers

Contact any of the maintainers for any queries related to the project.

Project Admin: Apoorv Aron Mentor: Ayush Pandit

❄️ Features:

  • Link Management
  • Data Security
  • Personalized links
  • Link Tracking

❄️ Demo

🛠️ Tech Stack

HTML5 JavaScript CSS3 PHP Less MySQL jQuery Bootstrap

Screenshots

Contribute

We welcome contributions to our project. Before making a contribution, check the contribution guide.

Code of Conduct

Check out the Code of Conduct to know an inclusive environment that respects all contributions.

License

This project is Licensed under the MIT license.

🚀 Getting Started

-------------------------------------------*---------

To get started with the "Shorty" application, follow these steps:

  1. Fork the repository by clicking on the "Fork" button at the top right corner of the repository page. This will create a copy of the repository under your own GitHub account.

  2. Clone the repository to your local machine. Open your terminal or command prompt, navigate to the directory where you want to clone the repository, and execute the following command:

    git clone https://github.com/your-username/repo-name.git
    • Make sure to replace your-username with your GitHub username and repo-name with the name of the repository.
  3. Press Enter to execute the command. Git will clone the repository to your local machine.

  4. Move the "shorty" folder to your web server's directory.

    • For MAMP (Mac):
           /Applications/MAMP/htdocs/  folder  (FOR MAC)
    • For XAMPP (Windows):
           C:/xampp/htdocs/            folder  (FOR WINDOWS)
    • For LAMPP (Linux):
           /opt/lampp/htdocs/            folder  (FOR WINDOWS)
  5. Create a file env.php in below mentioned directory and add snippets according to your Xampp

    • Set the below snippet inside /Applications/MAMP/htdocs/shorty/env.php. file (FOR MAC & having MAMP)

         <?php
             $env_server = "localhost";
             $env_username = "root";
             $env_password = "root";
             $env_database = "shorty";
             $env_port = "8889";
      
             $env_domain = "http://localhost:8888/shorty/";
             $env_chatbot = "fce7a56f7d5207cc6a7263e92dca26602e956eca572e1d8b807a3e2338fdd0dc/stage";
         ?>
      
    • Set the below snippet inside htdocs/shorty/env.php. file (FOR WINDOWS & XAMPP)

         <?php
              $env_server = "localhost:3306";
              $env_username = "root";
              $env_password = "";
              $env_database = "shorty";
              $env_port = "3306";
      
             $env_domain = "http://localhost/shorty/";
             $env_chatbot = "fce7a56f7d5207cc6a7263e92dca26602e956eca572e1d8b807a3e2338fdd0dc/stage";
         ?>
      
    • Set the below snippet inside /opt/lampp/htdocs/shorty/env.php. file (FOR Linux & LAMPP)

         <?php
              $env_server = "localhost:3306";
              $env_username = "root";
              $env_password = "";
              $env_database = "shorty";
              $env_port = "3306";
      
             $env_domain = "http://localhost:8080/shorty/";
             $env_chatbot = "fce7a56f7d5207cc6a7263e92dca26602e956eca572e1d8b807a3e2338fdd0dc/stage";
         ?>
      
  6. Start your web server.

  • Start Apache & MySQL Server in XAMPP Panel or MAMP Panel

  • For LAMPP on Linux:

    1. Open your terminal.

    2. Start the server by executing the following command:

      sudo /opt/lampp/lampp start
      
  1. Set up the Database
  • To Setup the database, open

        localhost:8888/phpmyadmin    (FOR MAC & MAMP)
        localhost/phpmyadmin         (FOR WINDOWS & XAMPP)
        localhost/phpmyadmin         (FOR Linux & LAMPP)
    
  • Create New Database and name the Database as shorty

  • Import the Database from the "htdocs/shorty/shorty.sql" directory.

         shorty.sql (db file)
    
  1. Run in the browser

      localhost:8888/shorty/     (FOR MAC)
      localhost/shorty/          (FOR WINDOWS)
      localhost/shorty/          (FOR Linux)
    



! IMPORTANT -> users table must contain one row

      1) uniqueNo = "shorty"
      2) email = "shorty@gmail.com"
      3) password = "62b5fe5724b08db455672377fb31e95b"
      4) img = "../assets/user-img/1659983584admin-img.png"

-> Home Page/Guest Page shorted links go into the admin account

      email    -> shorty@gmail.com
      password -> shorty@gmail.com

🤝 Contributors :

Thanks to all the contributors.



Back to top