Giter Site home page Giter Site logo

project-starter's Introduction

Project Starter

Rules to follow on the backend:

  • All business logic should be put to a dedicated service and not directly to a router,
  • Each additional response, like error, must also be reflected in the router documentation,
  • Use lazy logging,
  • Don't log sensitive information like credentials or keys,
  • Use the following log level structure:
    • DEBUG: Message for debugging purposes. It helps developers to debug the specific process but is not essential in overall operation of the program.
    • INFO: Message to help other developers understand what happens in overall operation of the program.
    • WARNING: Something unusual happened, but we handled the case, so it didn't break anything. However, special attention should be paid to this,
    • ERROR: The top-priority issue that breaks the program and has to be investigated.
  • Test coverage score must be kept on the 100% level (don't put # pragma: no cover without important reason).
  • Always add annotations and use the most specific types as possible,
  • Custom exceptions should be named with the Error at the end of the name like: CustomNameError.

project-starter's People

Contributors

przemoo16 avatar dependabot[bot] 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.