express, shortster, moving world
-
GET:
/api/<shortcode>
: if shortcode is existing, redirect to original url -
GET:
/api/<shortcode>/stats
: if shortcode is existing, return the detail of that -
POST:
/api/url/register
: register new shortcode with original url
cd client
cp .env.example .env
pnpm install
pnpm build
pnpm install
pnpm start