Skip to content

17prince/Prince-Bakery

Repository files navigation


Logo

🍰Prince Bakery🍰

🚀An awesome Bakery🎂. Explore a delightful range of bakery items!🚀

About The Project

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.

Key Features

  • 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

Built With

  • Javascript.badge
  • Expressjs.badge
  • Mongdb.badge
  • Nodejs.badge
  • Stripe.badge
  • Redis.badge
  • html.badge
  • css.badge
  • jwt.badge
  • Pug.badge

Getting Started With

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.

Installation

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)]

  1. Clone the repository
       git clone https://github.com/17prince/Prince-Bakery.git
  2. Install NPM packages
    npm install
  3. Create a config.env file
    NODE_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
    
    

Contact

Name : Prince Vishwakarma

Contact : LinkedIn

About

Sample Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published