A self-hostable link shortening web application written in TypeScript on top of Restify.
This backend system is a RESTful service built upon Restify while the frontend is written in React with ES6.
- Clone the repo
- Run
npm install
- Rename
db.sample.ts
intodb.ts
and add your MySQL crendentials into the file. - Run
gulp compile-all
to transpile your TypeScript code into Node.js. - Run the
index.js
file withnode dist/index.js
or usingnodemon
,pm2
, etc to execute it.
- Run
npm test
to fire the tests, which mainly focus on the link converting functionality.
Cheers!