Skip to content

creinis/url-shortener-fcc-backend-api-cert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aqui está o conteúdo para o seu README.md adaptado ao URL Shortener Microservice, seguindo a estrutura que você forneceu:


URL Shortener Microservice

Technologies:

HTML CSS JavaScript Express NodeJS MongoDB

Try it!

https://url-shortener-nine-kappa.vercel.app/

Functionality

The backend of the URL Shortener Microservice is a Node.js application using the Express framework, designed to provide URL shortening functionalities. The application includes routes to handle HTTP requests, process data, and return responses formatted in JSON.

Key Features:

  1. URL Shortening:

    • The application can receive a long URL and generate a shorter version of it.
    • Users can enter a URL in the input field and receive a shortened URL that redirects to the original URL when visited.
  2. Redirection:

    • The application supports redirection from the shortened URL to the original URL.
  3. User Interaction:

    • Provides an explanation of how the URL Shortener works and the benefits of using it.
    • Displays a history of URLs that the user has shortened during their session.

Practical Use Case

Imagine a social media application where users frequently share long URLs that can be cumbersome to handle. The backend of the URL Shortener Microservice could be integrated to provide shorter, more manageable links for sharing.

Example Usage:

  1. Input Data:

    • A user enters a long URL into the input field on the application's frontend.
  2. Request to Backend:

    • The frontend sends a request to the backend of the URL Shortener Microservice with the long URL provided by the user.
  3. Processing:

    • The backend generates a short URL corresponding to the long URL.
  4. Response to Frontend:

    • The backend returns the short URL in JSON format to the frontend, which displays it to the user.
  5. Redirection:

    • When the short URL is visited, the backend handles the redirection to the original long URL.

Benefits

  • Improved Usability: Short URLs are easier to share and manage, especially in platforms with character limits.

  • Enhanced User Experience: Provides a clean and simple interface for users to shorten URLs and view their history.

  • Modularity: The URL shortening logic is centralized, making the application more modular and easier to maintain.

With this structure, the backend of the URL Shortener Microservice provides an efficient and flexible solution for handling URL shortening in real-world web applications.


This is a FreeCodeCamp Challenge for Back End Development and APIs Projects Certification

freeCodeCamp