This is a simple URL shortener that allows users to add URLs with same names which will be stored in a SQLite database on the backend. Users can view all the added URLs using the index page and use short links using go/{value-they-provided}.
With this app, you can create unique and memorable shortcuts that will take you directly to your favorite websites, without ever having to researching for bookmarks in your browser.
- Clone the repository: git clone https://github.com/Dhivakarkd/Redirector.git
- Install dependencies: npm install
- Start the server: npm start
- Navigate to localhost:3000 in your browser to access the homepage
- To view all the URLs, go to localhost:3000/urls
- To use a shortened URL, go to localhost:3000/go/{value-they-provided}
You can also use the Docker image to deploy the project. Follow these steps:
- Pull the image: docker pull your-username/url-shortener
- Run the container: docker run -p 3000:3000 -d your-username/url-shortener
This project is licensed under the MIT License.
Feel free to fork and contribute to this project!