URL Shortner
Demo
URL shortner made using NodeJS and MongoDB served over Heroku at https://url-shortner-99.herokuapp.com/.
Setup locally
Prerequisites
Instructions
git clone https://github.com/sarthak-sehgal/url-shortner
cd url-shortner
npm install
In server.js
- Change BASE_URL to "http://localhost:8000/"
- Change dbUrl to your local MongoDB database URL
In public/main.js
- Change URL to "http://localhost:8000/shorten"
Create a .env file
PORT = 8081
DB_USERNAME="your_db_user_username"
DB_PASSWORD="your_db_user_password"