remarkablemark / Replit-URL-Shortener

Replit URL Shortener

Home Page:https://replit.com/@remarkablemark/URL-Shortener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replit URL Shortener

Run on Replit GitHub last commit License: MIT

Replit URL shortener. Read the blog post.

Prerequisites

Install

Clone repository:

git clone https://github.com/remarkablemark/Replit-URL-Shortener.git
cd Replit-URL-Shortener

Install dependencies:

npm install

Scripts

In the project directory, you can run:

npm start

Runs the app.

Open http://localhost:3000 to view it in the browser.

The environment variable REPLIT_DB_URL must be set for the Replit Database client to work:

REPLIT_DB_URL='https://kv.replit.com/v0/<your_base64_jwt>' npm start

Replace <your_base64_jwt> with the Base64 encoded JWT.

To get the REPLIT_DB_URL, create a Node.js Replit and execute in the Console:

process.env.REPLIT_DB_URL;

License

MIT

About

Replit URL Shortener

https://replit.com/@remarkablemark/URL-Shortener

License:MIT License


Languages

Language:JavaScript 84.5%Language:HTML 15.5%