Skip to content

gabergabora/URL-shotener-telegram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Documentation

/short

  1. Takes the fullUrl parameter from the req.body and insert then wait for the record to be inserted using the model.

Example of POSTMAN image

/expand

  1. Requires the short url ID.
  2. searches for the long url in DB.
  3. Returns the long url.

/delete

  1. Removes the particular record from the database.
  2. Requires the shortURL ID to be passed.

Testing using mocha

  1. npm run test image

MongoDB

Using hashed passwords. image

Prerequisites

  1. Basic Understanding of Node and JavaScript.
  2. Node and NPM installed.

How to Start

  1. Clone the repo.
  2. Run npm install
  3. Run node server.js
  4. Server will be running at locahost:5000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • EJS 57.6%
  • JavaScript 40.1%
  • CSS 2.3%