- Install the node packages
$ npm install
- Run the server process
$ npm start
- Server
- bin
- configs
- v1
- controllers
- models
- routes
Route | HTTP Method | Description |
---|---|---|
v1/link/:nanoId |
GET | Redirects to a link |
v1/link |
POST | Creates a new link document |
{
"_id": "ObjectId",
"name": {
"first": "String",
"last": "String",
"user": "String"
},
"paid": "Boolean"
}
{
"_id": "ObjectId",
"analytics": {
"clicks": "Number"
},
"date": {
"createdAt": "Date",
"updatedAt": "Date"
},
"link": "String",
"nanoId": "String",
"user": "String",
"title": "String"
}