SO! This is a subscription tracker API, built using node, and express, and mongoDB. So first I started setting it up with node, nodemon, eslint and much more. Then I declared a bunch of routes. One for the authentication, like onboarding, sign-up, sign-in and then a couple of user routes this is mostly for the admins (me) to get, delete and add information about users. And a couple of routes for the subscription tracker itself: like you subscription ID, like netflix, jetbrains, claude, Amazon and etc… And a couple of routes to cancel a specific user’s subscription, to renew a specific user’s subscription and one route to just view all you subscriptions. Then I made a couple of models after setting up my database. I’m using MongoDB on this one. And these are mongoose models: I have 2 models. 1 for the user authentication and one for tracking a user’s subscription. So the authentication model just asks for all the basic things like you username, email, and password and sets a couple of parameters before entering it into the database. It’s the same with the subscriptions models and it also just adds more parameters to your data before saving it to the database. And thank you so much for taking you time and reading thi. It really means a lot. Thank YOU! Catch you in the next dev log. See ya!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.