A simple MERN app for testing Stripe with user and subscription management, and for improving my knowledge in backend with help of nodejs as a frontend developer.
Hi, I am Albert, an always inspired and experienced Frontend developer with a track record of using JavaScript and its frameworks to help businesses build and manage stronger code bases.
👨💻 About me:
🔭 I’m working as a Frontend Developer, contributing web and sometimes mobile.
🌱 I am also coaching junior developers who are just starting in their careers.
As the leader of the Frontend Development team.
⚡ In my free time, I read tech articles and I adore developing pet projects with different technologies.
Add a model something like ActiveSubscription consisting of user_id, plan_id and expire_date for having information which user which subscription holds and until when (they should reactivate each time).
So based on that on frontend I can show which one is active which ones need to be updated or downgraded.
if user already does have some overdue subscription then show Reactivate button on the current plan and just change expiration date in db, if activated another one change alos plan_id. In general create only first time, next times just update it.