Repository navigation
Features
Users have more control over their own stores now! There is now a proper database cluster for this, as long as I have the MongoDB active and it doesn't hibernate. This is the release where parts of the app is locked behind registered users and guest accesses to the store.
- Users can add an uploaded image file to products.
- Users can now generate an invoice of their orders.
- Password recovery token granted.
Note: Mail APIs have changed and using Mailtrap. The email does not send since I do not have an active domain. But I don't intend to deploy this app and this is for demo purposes.
Dev Notes
- Restricted routes are now implemented. Users not signed in will not be able to add to the store.
- Error validation server side has been added.
This release state is just for learning purposes at this point and time. Highlight was packages such as
- nodemailer for sending emails
- bcryptjs for salting and hashing password that aids in the authentication and logging users in and out. Crucial to work with database. ByteByteGo has good diagram about how password validation works to the database.
- Multer for file uploads of images and validation the mime types
- pdfKit for generating pdf