Skip to content

danilojpferreira/puppeteer-shorten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puppeter shorten chalenge

A simple BE (Node.js with express) and DB (MongoDB) usign puppeteer to shorten url.

Tasks:

[ x ] Post to shorten url [ x ] Save title in mongodb collection [ x ] GET to redirect from shorten to original [ x ] Increase the number each access [ x ] GET to get 100 more accessed url

Endpoints:

POST: /

create a new enpoint with required body:

{
  "url": "string"
}

GET: /<SHORTEN_URL>

Redirect you for a the website relative to this shortner

GET: /top

Get the top 100 most accessed websites

How to run:

You can just use docker-compose up on the root of the directory or start the backend with npm i && npm run start and run a mongodb aside.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published