1
0 Comments

Implemented license validation for the API

This major milestone was difficult to achieve but is now complete. I'm so happy.

The API uses Gumroad license keys for validation and reacts accordingly - logs usage per key or informs the user that the limit has been reached.

The challenge for me was the sliding subscription, that is, a user has a predefined number of requests (example: 1000) for the subscription period (example: 1 month) and after the end of the period the amount is reset back to 0.

I drew the algorithm on a piece of paper, checked it at least three times, and then discussed it with my wife. That was sooo helpful - she's not a technical person so I had to explain the problem, explain my solution and get confirmation from her or not. At some point she understood the problem and suggested a very clever solution which I took. It is always very helpful to discuss your thoughts with someone else.

I am considering writing an article on how I tackled this.

Trending on Indie Hackers
How I grew a side project to 100k Unique Visitors in 7 days with 0 audience 47 comments Competing with Product Hunt: a month later 33 comments Why do you hate marketing? 27 comments $15k revenues in <4 months as a solopreneur 14 comments Use Your Product 13 comments How I Launched FrontendEase 13 comments