Code Monkey home page Code Monkey logo

btc_application_new's Introduction

BTC application new

Previous implementation https://github.com/Mykola-Hadupiak/BTC_application

What's new?

  1. I used NestJs, TypeScript, Prisma, Pino logger and nestjs/schedule, nestjs-prometheus here.
  2. Completely different connection logic, and also, all DB models are implemented in the prisma/schema.
  3. Now when we want to get all emails, we get only the information that was specified in the task, such as: email, status, createdAt, deletedAt.
  4. Also, the logic of storing the rate has been rethought and redesigned, specifically, it is now stored in the database only when we send emails, and not always when a request is made (as it was before).
  5. Based on point 4, now the correct logic of sending emails is implemented, if the exchange rate has changed by 5%, it also looks if the email was subscribed to the newsletter before the previous email was sent, and based on this, sends emails only to those who have already received them and subscribed, and the exchange rate has changed by 5%.
  6. Also, the logic of nodemailer.service has been changed, and now it is responsible only for itself and does not make queries to the database in order to find emails there (this logic has been moved to rate.service).
  7. A new API for Bitcoin has also been added (since the previous one stopped working).
  8. Added @willsoto/nestjs-prometheus, without default metrics, now it's count: subscribe email, unsubscribe email, send email, send email error, exchange rate.
  9. Added basic Docker logic.

btc_application_new's People

Contributors

mykola-hadupiak 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.