Giter Site home page Giter Site logo

ecommerce-backend's Introduction

Future updates

  • Add location in order
  • Add quantity in Cart product
  • can correct model Cart : currently relationship is one to many can make it like many to many from user to product.
  • payment integration through razorpay
  • reset password and email verification --- done
  • delete user after particular time if not verified within time
  • sync timing of jwt token sent in cookie and jwt token in the userDB
  • preventing parameter pollution - https://www.youtube.com/watch?v=ECnqctPMKys&list=PL1BztTYDF-QPdTvgsjf8HOwO4ZVl_LhxS&index=122

methods included to save from attacks

  • brute force attack : limited the no of request
  • denial of service attack : limited the no of request and added req body size
  • helmet added for different security headers
  • cross site scripting attack : jwt in cookie
  • nosql query attack and xss injection - data sanitization (express-mongo-sanitize, xss-clean)

features this api includes

  • User profile

    • signup, login with jwt token having different token for different logins, logout single session and all session, forgot and reset password through reset password link in mail, deleteProfile, getMyProfile
  • Products

    • getAllProducts with paging and filteration, getProductsByID, add update and delete product by admin
  • Cart

    • if user is logged in then they can add products in cart and delete product from cart

ecommerce-backend's People

Contributors

reshabh27 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.