Gain insights on user interaction with your podcast show notes
-
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
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 /:id
Parameter | Type | Description |
---|---|---|
id |
string |
Unique URL Code |
Example:
GET http://localhost:3333/SLiCKEXdn
GET /api/generateUserId
GET /api/stats
Pass either a userId
, episodeId
or shortUrl
in the body to get the stats for that particular item