From the repo:
- Clone this project
- Go to the project directory and run
npm install
- Run
npm run start:dev
- To get a short URL: hit
localhost:3000/encode/
with POST request and pass URL inside the body (e.g.{ url: "https://www.google.com" }
). - To decode short URL into full URL: hit
localhost:3000/decode/
with GET request and pass short URL as the query (e.g.localhost:3000/decode/GeAi9K
).