Replit URL shortener. Read the blog post.
Clone repository:
git clone https://github.com/remarkablemark/Replit-URL-Shortener.git
cd Replit-URL-Shortener
Install dependencies:
npm install
In the project directory, you can run:
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
To get the REPLIT_DB_URL
, create a Node.js Replit and execute in the Console
:
process.env.REPLIT_DB_URL;