Code Monkey home page Code Monkey logo

ecommerce-api's Introduction

Ecommerce-api

It is a full back-end ecommerce app using JS language, Node.js runtime enviroment, Express framwork, MongoDB nosql database.

Section 1 : Preparing Express server and MongoDB.

  • Creating server using Express and using the nodemon pakage to observe changes.
  • Prepare Enviroment variables and stop tarck files in version control using .gitignore.
  • Logging requests using Morgan packgae.
  • Prepare the Database using MongoDB and make the test operation on it.
  • Make project folder structure.

Note for me to add file into gitignore file:

  • add filename to .gitignore file

  • remove filename (file path) from git cache

  • commit changes git add filename

      git rm --cached filename // for folder use git rm -rf --cached folder-name
      git add .
      git commit -m "add filename to .gitignore"
    

Section 2 : Categories CURD operations.

  • Prepare the schema of category model.

  • Added Create operation into categoryServices file 'createCategory' .

  • Install a slugify package and edit the createCategory method.

  • Install async-handler-express package in order to handling exciptions… etc.

  • Edit the getCategories request inside categoryService file.

  • Category Pagination.

  • Added a new route to get specific category 'getCategory'.

  • Added a new route to update a specific category 'updateCategory'.

  • Added a new route to update a specific category 'deleteCategory'.


Section 3 : Error Handling.

ecommerce-api's People

Contributors

oubaidaakilan avatar

Watchers

 avatar

Forkers

polevr

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.