Giter Club home page Giter Club logo

nestjs-ecommerce-api's Introduction

EXP Online Shop API


Nest Logo

Description

This is an E-Commerce API with modern features. This API is fast and secure. It's built with TypeScript, nextjs and MongoDB. This API can be used with any front-end frameworks (Angular, React, Vue). To use this API either contact me for an API secret or clone this repo star this repository before cloning or forking.

Goto docs

Features

  • User login
  • Shop creation
  • Products upload
  • Adding new product tags
  • Updating products price and details
  • Getting all uploaded products data
  • Finding products by tags
  • Finding products by category

Support

This API is an MIT-licensed open source project. If you'd like to join me in this project then fell free to submit your pull request.

Stay in touch

License

Nest is MIT licensed.
This project is also MIT licensed.

nestjs-ecommerce-api's People

Contributors

sifatulrabbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nestjs-ecommerce-api's Issues

add controller and providers for shop

  • shop route within the owner of the shop /users/:username/shop/
  • shop controller should have these features
    • create a shop if the shop doesn't exist (users are limited to open only one shop)
    • shop has categories where categories will have their own database
    • add items controller to add new items to the shop
    • remove items from the shop
    • update items of the shop
  • shop service should provide all the needed services for the controller
  • shop should have middlewares for:
    • checking if the user has a shop or not
    • items can have only one category but the amount of tags in an item is limited to 5

๐Ÿž bug: implementing the auth module breaks the app

Nest can't resolve dependencies of the AuthService (?). Please make sure that the argument UsersService at index [0] is available in the AuthModule context.

Error: Nest can't resolve dependencies of the AuthService (?). Please make sure that the argument UsersService at index [0] is available in the AuthModule context.

If UsersService is a provider, is it part of the current AuthModule?
If UsersService is exported from a separate @module, is that module imported within AuthModule?
@module({
imports: [ /* the Module containing UsersService */ ]
})

โ— update status codes

  • 201 for POST and PUT requests
  • 202 for logins and authorizations
  • 200 for GET requests
  • 401 for unauthorized errors
  • 404 for not found documents (user not found, data not found)
  • 406 for not acceptable errors
  • 400 for other client side errors
  • 500 for internal errors

๐Ÿฉน fix(error handlings)

  • while creating a user if the same username exists server responses with a default mongoose error change it to a custom error response
  • while a user is creating a shop check if the user has already been registered a shop

add user model

user model should have these fields:

  • user name
  • email
  • password (hashed)
  • shop name

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.