Shrnk is a URL shortener built with MongoDB, Express and Vue.
- Copy a valid url
- Paste URL into field and click shrink
- Visit the shortened URL provided
localhost:8080/ENCODED_URL
- Copy a valid url
- Make a
POST
request tolocalhost:8080/api/shrink
with data:url=LONG_URL
- The API returns a JSON object containing the shortened and original URLs
- Download repository
- Install packages with
npm install
- Add a MongoDB
DB_PASSWORD
&DB_URL
in a.env
file in the root directory - Run the dev server with
npm run dev