David Tran
David Tran
We need to use Stripe webhooks to listen to Stripe event: payment succesful and payment failed. Event data should be stored in database. https://stripe.com/docs/webhooks
When user disables Javascript in browser. We need to show a message: Please enable Javascript to view this site. Add some basic style to make this message standout.
User can delete their account in the profile page. - All of their documents will be disabled - Their subscription is cancelled - The pending invitation that they have sent...
If Sentry API key is provided in .env then we will log error in both frontend and backend with Sentry. Otherwise, we will log backend error in log file.
We should use constants to check email type. Currently, we use string, it is not stable.
Right now we are creating new product and price for new subscription. We should have a command to create Stripe product and prices at once. We store product id and...
when create new record which store email address, we should lower case the email string. Eg: email in user table.
``` export default function generateEmailTemplate({ fileName, data }) { const templatePath = `${path.resolve()}/email-template/${fileName}`; const template = execSync(`mjml ${templatePath}`).toString(); return handlebars.compile(template)(data).toString(); } ``` - please use mjml npm package to compile...
- API - User interface