I am about to implement my first node backend that is not coming from a tutorial online. I would like to know if I am basically correct in my explanation of how to set up this backend. The web app is a small web app that sends automated texts to users that sign up. The payment processor I am using is stripe. I am using the MERN stack.So does this sound right: I am going to store the phone number, email, credits (that determines how many days they signed up to receive texts) in a mongo database. I will use node to access this information of customers and using Twilio (a library that sends SMS messages) I will loop through the customers once per day and send out a text that is also stored in the mongo database to them all. I will save the stripe payments in the mongo database as well to act as records.A few questions I have: If I am on the free tier of MongoDB will it automatically move me up a to a payed tier and charge me if I get enough users to break the tier? What is the best way to run a node function once a day? Do I even need a database because I store very little overall information?I am pretty much brand new to this whole full stack thing so sorry if some of this is extremely basic, thank you for your time.
Submitted November 06, 2019 at 03:24AM by LAN_scape
No comments:
Post a Comment