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
POSTrequest tolocalhost:8080/api/shrinkwith 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_URLin a.envfile in the root directory - Run the dev server with
npm run dev