Giter Site home page Giter Site logo

replit.sh's Introduction

Replit.sh: Repl.it's Internal URL Shortener

Preface

If you follow @replit on Twitter, you may have realized some links showing up on our posts starting with the url replit.sh. Versions 3 and 4 are on hold for now due to the need for dependencies to be built up in the Replit.sh ecosystem (such as a rework of the modules).

Notes:

  • This URL Shortener can only be run on Repl.it due to it using Repl.it DB.
  • Users are managed with Repl.it Auth, so keep that in mind.

Getting Setup

  1. Setting Up Your Repl
    1. Press the run on repl.it button below to clone the repository and install the packages: Run on Repl.it
    2. After running your repl, go to to line 11 in main.py and replace https://replit.sh/ with the url your repl is being served to.
    3. Replace Replit.sh on line 12 with the name of your site.
  2. Setting Up Your Users
    1. Rename sample.env to .env, as it will be where your user ids are stored.
    2. Head over to https://[Your URL]/getid, login with Repl.it, and then copy the user id you are given.
    3. Paste the URL into the array in your .env file.
      1. For example, if you are the only user and your id is 123456 then your .env file should look like IDS=[123456]. If you
      2. If you wanted to add your friend who has id 654321, your .env file would look like IDS=[123456,654321].
  3. Stop and Start the repl to complete your changes.

Features

  • Simple Login Through Repl.it:

Login with Repl.it

Login with Repl.it

  • Dashboard of all links for a user:

Dashboard

  • Easy to use home-page:

Homepage

  • Custom URLs:

Custom URLs

  • Editing URLs:

Editing URLs

  • Database I/O:

Database I/O

  • Deleting URLs:

Deleting URLs

replit.sh's People

Contributors

piemadd avatar ttury 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.