- This is a simple
URL shortener
application that allows users to create short URLs, view a preview, and manage simple user authentication.
User Authentication
: Sign up and log in to access the URL shortener.URL Generation and preview
: Generate short URLs from long links and view a preview of the homepage
- Login:
http://localhost:8001/login
- Signup:
http://localhost:8001/signup
- Generate url & preview:
http://localhost:8001/
- clone the repo
git clone https://github.com/Aman-m01/url-shortener.git
cd url-shortener
- Install dependencies
npm install
- Set up environment variables
- Create a .env file in the root directory and add the following
MONGODB_URI=your_mongodb_connection_string
PORT=8001
- Run the server
npm start
The application will be available at http://localhost:8001.