Welcome to our Prince Bakery! This API based website allows users to explore and purchase delicious bakery items while supporting all essential CRUD (Create, Read, Update, Delete) operations. We've used Strip payment gateway to implement payment service and SendGrid to enable email notification service.
-
Browse Items: Explore a delightful range of bakery items available for purchase.
-
CRUD Operations: Perform Create, Read, Update, and Delete operations seamlessly.
-
Pagination: Limits the number of items to fetch
-
Security Measures:
- No-SQL Query Injection Protection.
- Parameter Pollution Safeguards.
- To Prevnet from XSS attack
-
Payment Gateway:
- Strip Payment Service
-
Email Notification:
- Nodemailer
- Mailtrap for testing
- Sendgrid in production
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Below is the example of how you can install this project and run it on your local machine.
NOTE: [The current version of nodejs for this project is ( >=10.0.0 <15)]
- Clone the repository
git clone https://github.com/17prince/Prince-Bakery.git
- Install NPM packages
npm install
- Create a
config.env
fileNODE_ENV=development PORT=1714 DATABASE DATABASE_PASSWORD JWT_SECRET JWT_EXPIERS_IN=90d JWT_COOKIE_EXPIERS_IN=90 // mailtrap for testing EMAIL_USERNAME EMAIL_PASSWORD EMAIL_HOST=smtp.mailtrap.io EMAIL_PORT REDIS_URL=redis://<password>@<Endpoint> REDIS_ENDPOINT REDIS_PASSWORD EMAIL_FROM //Sendgrid for production SENDGRID_USERNAME SENDGRID_PASSWORD STRIPE_SECRET_KEY STRIPE_WEBHOOK_SECRET
Name : Prince Vishwakarma
Contact : LinkedIn