Skip to content

szpatrichard/szprio-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend server for szpr.io

🛠️ Get Started

  1. Install the node packages
$ npm install
  1. Run the server process
$ npm start

🗂️ Project Directory Structure

  • Server
    • bin
    • configs
    • v1
      • controllers
      • models
      • routes

🪧 Endpoint Routes

Route HTTP Method Description
v1/link/:nanoId GET Redirects to a link
v1/link POST Creates a new link document

📐 Schemas

Users Collection

{
	"_id": "ObjectId",
	"name": {
		"first": "String",
		"last": "String",
		"user": "String"
	},
	"paid": "Boolean"
}

Links Collection

{
	"_id": "ObjectId",
	"analytics": {
		"clicks": "Number"
	},
	"date": {
		"createdAt": "Date",
		"updatedAt": "Date"
	},
	"link": "String",
	"nanoId": "String",
	"user": "String",
	"title": "String"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published