This repository is way out of date. Please use v4.
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).
- 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.
- Setting Up Your Repl
- Setting Up Your Users
- Rename
sample.env
to.env
, as it will be where your user ids are stored. - Head over to
https://[Your URL]/getid
, login with Repl.it, and then copy the user id you are given. - Paste the URL into the array in your
.env
file.- For example, if you are the only user and your id is
123456
then your.env
file should look likeIDS=[123456]
. If you - If you wanted to add your friend who has id
654321
, your.env
file would look likeIDS=[123456,654321]
.
- For example, if you are the only user and your id is
- Rename
- Stop and Start the repl to complete your changes.
- Simple Login Through Repl.it:
- Dashboard of all links for a user:
- Easy to use home-page:
- Custom URLs:
- Editing URLs:
- Database I/O:
- Deleting URLs: