Skip to content

montasim/quillink-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quillink

Wakatime coding time badge GitHub release GitHub last commit GitHub commit activity GitHub contributors GitHub repo file count GitHub repo size GitHub license

CONTENTS:

  1. FEATURES
  2. PREREQUISITES
  3. SETUP
  4. RUNNING THE SCRIPT
  5. ERROR HANDLING
  6. HOSTING
  7. USED PACKAGES
  8. TOOLS
  9. ARTICLES
  10. DO NOT FORGET TO DO
  11. TUTORIALS
  12. INSPIRATIONS
  13. CONTRIBUTE
  14. CONTRIBUTORS
  15. SPECIAL THANKS
  16. LICENSE
  17. CONTACT

1. FEATURES

  1. Create short URL
  2. Redirect to the original URL
  3. QR code
  4. URL Analytics

2. PREREQUISITES

  1. Node v18
  2. PNPM v10

3. SETUP

  1. Clone the repository and navigate to the directory:

    git clone https://github.com/montasim/quillink.git
    cd quillink
  2. Install the dependencies:

    pnpm install
  3. Configuring the Environment:

    Create a .env.development or .env.staging or .env.production file in the root directory of the project and populate it with the necessary environment variables. See the .env.example file for an example.


4. RUNNING THE SCRIPT

  1. Running the Application:

    To start the application in development mode, use:

    pnpm dev

    This will run the server with nodemon, automatically restarting when any changes are made.

  2. To build the application, use:

    pnpm build

    This will build the application.

  3. To run the application, use:

    To run the application, use:

    pnpm start

    This will run the project.

  4. Code Prettier:

    • To check if files are formatted correctly:

      pnpm prettier:check
    • To format files:

      pnpm prettier:fix

Docker

  1. Build the Docker Compose Services:

    pnpm docker:build-dev
  2. Run the Docker Compose Services:

    pnpm docker:run-dev
  3. Stop the Containers:

    pnpm docker:stop-dev
  4. Rebuild the Containers:

    pnpm docker:rebuild-dev

5. ERROR HANDLING


6. HOSTING

Deploy to Vercel

Step-by-step guide on setting up your own Vercel instance:

Vercel is the recommended option for hosting the files since it is free and easy to set up.

  1. Go to vercel.com.
  2. Click on Log in. Login page
  3. Sign in with GitHub by pressing Continue with GitHub. Sign in with GitHub
  4. Sign in to GitHub and allow access to all repositories if prompted.
  5. Fork this repo.
  6. Go back to your Vercel dashboard.
  7. To import a project, click the Add New... button and select the Project option. Add new project
  8. Click the Continue with GitHub button, search for the required Git Repository and import it by clicking the Import button. Alternatively, you can import a Third-Party Git Repository using the Import Third-Party Git Repository -> link at the bottom of the page. Select GitHub project
  9. Create a personal access token (PAT) here and enable the repo and user permissions (this allows access to see private repo and user stats).
  10. Copy all the .env.development file as environment variables in the Vercel dashboard.
  11. Click deploy, and you're good to go. See your domains to use the API!

7. USED PACKAGES


8. TOOLS

  1. WebStorm
  2. Postman
  3. Swagify.io

9. ARTICLES


10. DO NOT FORGET TO DO


11. TUTORIALS



13. CONTRIBUTE

Contributions are always welcome! Please read the contribution guidelines and contributor license agreement.


14. CONTRIBUTORS

contributors


15. SPECIAL THANKS


16. LICENSE

Licence


17. CONTACT

linkedin icon github icon github icon web icon gmail icon facebook icon x icon



About

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages