A simple URL shortener to make your links cleaner and easier to share.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Linkr is a simple URL shortener that helps you convert long, complex URLs into short, shareable links. It also supports basic analytics, such as click tracking. This tool is designed to be lightweight, easy to use, and efficient for anyone looking to make links cleaner and easier to manage.
To get a local copy of the project up and running, follow these steps. This guide will help you set up the environment for Linkr
Before you begin, make sure you have the following installed on your machine:
-
Node.js (Recommended version: >= 22.12)
- Install from: Node.js
-
PostgreSQL (for database management)
- Install from: PostgreSQL
-
Redis (for caching)
- Install from: Redis
-
npm (Node package manager)
- If you have Node.js installed, npm should be installed automatically. You can verify by running:
npm -v
- If you have Node.js installed, npm should be installed automatically. You can verify by running:
- Clone the repo
git clone https://github.com/BinaryBeast007/linkr.git
- Navigate into the project directory:
cd linkr
- Install NPM packages
npm install
- Set up environment variables: Create a .env file in the root directory of the project and add the following configuration:
DATABASE_HOST=localhost DATABASE_PORT=5432 DATABASE_USER=dummyuser DATABASE_PASSWORD=dummypassword DATABASE_NAME=linkr DATABASE_SYNC=true DATABASE_AUTOLOAD=true JWT_SECRET=dummy_jwt_secret_key JWT_TOKEN_AUDIENCE=localhost:3000 JWT_TOKEN_ISSUER=localhost:3000 JWT_ACCESS_TOKEN_TTL=3600 JWT_REFRESH_TOKEN_TTL=86400 GOOGLE_CLIENT_ID=dummy-google-client-id.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=dummy-google-client-secret REDIS_URL=redis://localhost:6379 REDIS_TTL=8h
- Start the development server: Run the following command to start the application:
The application should now be running locally on
npm run start:dev
http://localhost:3000
- Change git remote url to avoid accidental pushes to base project
git remote set-url origin BinaryBeast007/linkr git remote -v # confirm the changes
The Usage section is currently in progress and will be updated with detailed examples and instructions shortly. Please stay tuned for further updates.
The roadmap is under development, and specific details will be added soon. Please check the open issues for proposed features and known issues.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See License for more information.