Short URI Project - Live
This project is a full-stack application designed to shorten URLs, with a backend built using Node.js and a frontend developed using modern web technologies. The backend handles the logic for URL shortening, while the frontend offers a clean, user-friendly interface.
- URL Shortening: Users can input a long URL, and the system will generate a shortened URL.
- User-friendly Interface: A simple and responsive frontend that allows users to interact seamlessly.
- Database Integration: Backend connects to a database for storing and retrieving shortened URLs.
The backend is powered by Node.js and handles all API requests related to URL shortening. It includes:
index.js: Main entry point for the backend.getConnection.js: Handles database connections.types.js: Defines the types used in the project.package.json: Lists the dependencies and scripts for the backend.
The frontend is built using modern web technologies, offering a smooth interface for users to input URLs and receive shortened links.
index.html: The main HTML file for the application.src/: Contains the source code for the frontend, including React components (if applicable).public/: Public assets such as images, icons, etc.vite.config.js: Configuration for Vite, a fast front-end build tool.
- Node.js (v14+)
- A package manager like
npmoryarn
- Navigate to the backend directory:
cd backend - Install the dependencies:
npm install
- Run the backend server:
The backend should now be running on
nodemon index.js
http://localhost:5000.
- Navigate to the frontend directory:
cd frontend - Install the dependencies:
npm install
- Start the frontend development server:
The frontend should now be running on
npm run dev
http://localhost:3000.
- Open the frontend in your browser and input a long URL that you want to shorten.
- The frontend will communicate with the backend, which processes the URL and returns a shortened version.
- The shortened URL is displayed on the frontend for user interaction.
- Frontend: HTML, CSS, React, Vite for building
- Backend: Node.js, Express, Database
- Build Tools: Vite for frontend, npm for backend
- Add user authentication to keep track of individual users' shortened URLs.
- Include analytics for each shortened URL, such as click count and geographical data.
- Implement custom short URLs.