A URL Shortener application built using the MERN stack (MongoDB, Express, React.js, Node.js), SHORTid, and JWT. This application allows users to shorten long URLs, manage their web links, and view analytics for their shortened URLs.
- Shorten URLs: Users can shorten long URLs easily.
- User Authentication: Users can sign up, log in, and manage their account.
- RL Management: Users can view, edit, and delete their shortened URLs.
- Analytics: Users can see the analytics for their shortened URLs, such as the number of clicks.
- Data Storage: Long and short URLs are stored in MongoDB.
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- URL Shortening: SHORTid
- Authentication: JSON Web Tokens (JWT)
- Node.js
- MongoDB
- Clone the repository:
git clone https://github.com/yourusername/url-shortener.git
cd server
- Install backend dependencies:
npm install
- Create a .env file in the backend directory and add the following:
JWT_SECRET=your_jwt_secret
- Start the backend server:
npm start
The application will now be running on http://localhost:3000.
- Navigate to the frontend directory:
cd app
- Install frontend dependencies:
npm install
- Start the frontend development server:
npm run dev
The application will now be running on http://localhost:5173.
- Sign Up: Create a new account by signing up.
- Log In: Log in to your account.
- Shorten URL: Enter a long URL to get a shortened version.
- Manage URLs: View, edit, and delete your shortened URLs.
- View Analytics: See the analytics for your shortened URLs.
This project is licensed under the MIT License.
For any questions or suggestions, please open an issue or contact me at Email
Backend hosted url->https://url-shortener-tatk.onrender.com