- run
$ npm install - create a
.envfile and addDB_URI=<your postgres database uri> - run schema.sql to create tables for your database
You can get away by not integrating Auth0.
If using localmachine, use localhost otherwise use ctlnk
GET https://ctlnk.herokuapp.com/q/<shortened url id>POST https://ctlnk.herokuapp.com/q/
{
url: '<URL to be shortened>',
flavor: '<your endpoint name>' [optional]
}GET https://ctlnk.herokuapp.com/p/<id>POST https://ctlnk.herokuapp.com/p/
{
title: '<title of content>',
content: '<your content>',
language: '<programming language if any>' [optional]
}- 1 ERROR_CREATION
- 2 ERROR_INVALID_URL
- 3 ERROR_AUTHENTICATION [Admin Authentication]
- 4 ERROR_INVALID_USER
License: [ MIT ]