Giter Site home page Giter Site logo

shop-now-api's Introduction

File system [Feature-sliced-design]

  • src/
    • tests — [tests, module and integration tests]
    • models — [mongoose models]
    • lib — [configuration of this api]
    • router — [inits all route files from different sections]
    • utils — [functions that starts this project, and most commonly used helpers in this project]
    • main.ts — [init functions that helps to start the project]
    • marketplace/
      • router/index.ts — [main router file of marketplace section, init all module routes, and has access to controllers]
      • utils — [main helper functions, or init option of necessary services, such as swagger or etc. ]
      • types — [essential types to all modules]
      • middleware — [middleware functions that used in this part of api]
      • services — [classes with function that has access to models]
      • controllers — [classes with function that has access to services]
      • modules — [module that does one bf]
        • lib - [configuration variables for one module]
        • middlewares - [middleware function for one module]
        • routers - [*routes for one module, has access to controllers from outside ../../controllers/**]
        • utils- [helper functions, or mini service configurations]
        • swagger - [swagger api for one module]
        • index.ts - public api
    • company-admin/
    • main-admin/
  • .husky — [commit hooks configuration]
  • .github — [configuration workflows (cd)]

Rules:

  • For every feature despite fix bugs, open them own branch
  • After completing feature commit them, commit pre-hook works and it fixes lint errors
  • Try to write clean code, [DRY, KISS]

shop-now-api's People

Contributors

pxls00 avatar ruslantages avatar

Stargazers

 avatar

Watchers

 avatar  avatar

shop-now-api's Issues

add-lint

add eslint and ts-lint with fixiable prettier

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.