mirror of
https://github.com/arkorty/Reduce.git
synced 2026-03-17 16:41:42 +00:00
25ead1d8bd1b6417d07c4e847a11e643fda6ba6f
This reverts commit d8bf101527.
Reduce
Reduce is a URL shortening service that allows users to easily shorten long URLs for easy access and sharing. This repository contains both the backend and frontend code for the Reduce application.
Features
- URL shortening: Convert long URLs into short, easy-to-share URLs.
- Automatic URL retrieval: Easily retrieve the original long URL using the short URL.
- Unique ID generation: Each shortened URL is given a unique, randomly generated ID.
- Responsive UI: User-friendly interface with React, Tailwind CSS, and MUI components.
Technologies Used
- Backend: Go, Echo, GORM
- Frontend: React, Axios, Tailwind CSS, MUI
- Database: PostgreSQL
- Containerization: Docker, Docker Compose
Getting Started
Prerequisites
- Docker and Docker Compose installed
- Node.js and npm installed
Backend Setup
-
Ensure the environment variables are set:
DB_HOST=host DB_PORT=port DB_USER=user DB_NAME=name DB_PASSWORD=password BASE_URL=url -
Build and run the backend using Docker Compose:
docker-compose up --build
Frontend Setup
-
Navigate to the frontend directory:
cd frontend -
Create a
.env.localfile with the following variable:NEXT_PUBLIC_BACKEND_URL=http://localhost:8080 -
Install the dependencies and run the frontend:
npm install npm run dev
Usage
- Open your browser and navigate to
http://localhost:3000. - Enter the long URL you want to shorten and click the "Reduce" button.
- Copy the shortened URL and share it as needed.
Contributing
Thank you for considering contributing to Reduce! We welcome your contributions. Whether it's fixing bugs, adding features, or improving documentation, your help is appreciated. Feel free to report issues or submit pull requests.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Languages
TypeScript
67.5%
Go
29.2%
HTML
1.8%
Makefile
0.7%
JavaScript
0.4%
Other
0.4%
