URL shortener demo.
Task description: In this challenge, we're asking you to spice up your life with your very own URL Shortener! We've all seen sites like bit.ly that allow you to shorten a URL into something... well... shorter! It's time to make your own. There are roughly four parts to this challenge:
- Make a small API app that receives in a URL with a stack of your choice.
- Using the supplied URL, generate a unique URL with the base of tier.app. It should be generated keeping uniqueness in mind.
- Return the shortened URL.
- Bonus: track the visits in a second DB table for stats.
$ npm install
$ npm run start:db
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run build
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov