Skip to content

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

License

Notifications You must be signed in to change notification settings

Dimple-Choudhary/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 = "dac12164baa0169d91f05cafb35e45252e956eca572e1d8b807a3e2338fdd0dc/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:8080/shorty/";
             $env_chatbot = "dac12164baa0169d91f05cafb35e45252e956eca572e1d8b807a3e2338fdd0dc/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 = "dac12164baa0169d91f05cafb35e45252e956eca572e1d8b807a3e2338fdd0dc/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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 40.5%
  • JavaScript 34.9%
  • CSS 10.7%
  • SCSS 6.7%
  • PHP 5.3%
  • Less 1.6%
  • Hack 0.3%