Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

A backend application that allows shortening a specific URL. The technologies are REST APIs, ExpressJS, TypeScript, NodeJS, and MongoDB.

License

Notifications You must be signed in to change notification settings

kentlouisetonino/backend-nodejs-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

  • A backend application that allows shortening a specific URL. The main technology stack are REST APIs, ExpressJS, TypeScript, NodeJS, and MongoDB.
  • This is my final solution of the FreeCodeCamp URL Shortener Mircoservice challenge.



Setup

  • Create a new .env file and put the corresponding key-value pairs.
# * MongoDB
MONGODB_URI=

# * Local
PORT=
  • Run the following commands.
npm run build
npm run dev
  • Testing
* CreateURL
Method: POST
URL: http://localhost:13000/api/shorturl
Body (JSON): { "short_url": "https://github.com" }

* GetURL
Method: GET
URL: http://localhost:13000/api/shorturl/:short_url?
Params: { "short_url": 1111 }



Testing

Screencast.from.Saturday.25.February.2023.05.45.57.AM.PST.webm

About

A backend application that allows shortening a specific URL. The technologies are REST APIs, ExpressJS, TypeScript, NodeJS, and MongoDB.

Topics

Resources

License

Stars

Watchers

Forks