heaversm / showlinks

Podcast Prototypes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Showlinks

Gain insights on user interaction with your podcast show notes

Run Locally

  • Clone the project**

  • Get the .env file from the project owner

  • Sign up for the mongo atlas free tier

    • Choose your region and click on the "Create a free cluster" button
    • Choose "Connect Your Application" from the "choose a connection method" modal
    • Copy your connection URL and paste it in the .env file's MONGO_URI variable
  • Install dependencies*

  npm install
  • Start the server
  npm run start

API Reference

Shorten URL

  POST /api/short
Field Type Description
Body json Original Url

Example:

POST http://localhost:3333/api/short
Content-Type: application/json

{
    "origUrl": "https://nemo.hashnode.dev/an-introduction-to-recursion-using-javascript-ckfgx2nrq001xols17h787f87"
}

Get item

  GET /:id
Parameter Type Description
id string Unique URL Code

Example:

GET http://localhost:3333/SLiCKEXdn

Generate User ID

  GET /api/generateUserId

Get Stats

  GET /api/stats

Pass either a userId, episodeId or shortUrl in the body to get the stats for that particular item

About

Podcast Prototypes


Languages

Language:JavaScript 95.6%Language:CSS 2.3%Language:HTML 2.0%