Giter Club home page Giter Club logo

tunelator-backend's Introduction

Hi, i'm graduated in math, full stack developer and nerd.

  • ๐Ÿ“‹ Sometimes i write dev articles, usually in brazillian portuguese, at dev.to/eduardojm.
  • ๐Ÿ“ซ You can reach me at:

tunelator-backend's People

Contributors

dependabot[bot] avatar eduardojm avatar

Watchers

 avatar

tunelator-backend's Issues

Create an app for social content

Create an model (CRUD) with only GET api route for registry the social contents.

Fields:

  • title (string not null)
  • link (string not null)
  • description (string nullable / empty)
  • image (Image field / empty)
  • created date
  • update date

GET Route:

  • sort by updated date

Create APIException for error response returns

add task to remove old e-mails

  • add task to run every day.
  • this task must get the e-mails created more than 30 days and remove it from our database.
  • write a test for the task.

add tests for the usersystem calls

  • study about mocking other api calls with django testing.
  • study about testing with celery tasks.
  • made the tests.

  • mock the user system API service and test the user name validation;
  • mock the user system API service and test the task create_mail_user. (Related to #24)

add an type for the content

  • create an content type model with text value.
  • add an FK for the content type into the content.
  • update tests to cover it cases.

Some types are:

  • Text
  • Instagram Reels
  • Instagram Post
  • YouTube

The types must be an foreign key to another Model to be expandable.

write tests for the mail utils

  • decode_subject
  • decode_from_email
  • update_mail_origin_subject
  • save_mail_from_file
  • set_email_body
  • get_email_body
  • send_email

Investigate problem with some not delivered emails

Twilio: https://api.tunelator.com.br/admin/mails/userreceivedmail/127/change/

Erro (task):

{"exc_type": "UnicodeEncodeError", "exc_message": ["ascii", "Esse \ufffd\ufffd um e-mail reenviado pelo tunelator.com.br.\r\n\r\nConta de Redirecionamento: [email protected]\r\nMatheus Vieira Gonçalves,\n To activate your Twilio Account, please verify your email address.\n Your account will not be created until your email address is confirmed.\n Confirm Your Email @ https://links.twiliocdn.com/ls/click?upn=3kZIcBV84MSbPEonqfrF6dGb3PJ6jbldw7J3yS57HqemXns2WYta3RoHKq8W8aC7vmJbetPeRD2ZTK1LBQt8SP1ZOi4eeSRR7qumWAqEMC7LbNOp57xIegLtkumAJzoMNrnMqNPIi2GqFrB-2FnuNVxfva14Gp-2BMbKOZyNs4NDeD4DKd7w4jwrMYxKS-2Bp72zyky-2B8tgn3DxbQMg2kml660rvV-2FrXXwCSSK460SRFK5AdsrmRU6zS-2FLdSrZclaYX-2FO27iFmr3zUELwNlvDF5vPEBkG4B1gy-2FWbZbfDj-2BHQN6X3sF7iC4KGeXTGofnWwKYgazjrKUjVsoWHxToZ3J8Pf0Q-3D-3DIf9O_Ip066xcHsou6K-2B6lU-2B2N2ewHcZ4uyLP8EdP2zo391TTsDZgggmmaSnCfSRmUMDXlaBxp5welj55c2A-2Fn4H6GmYAOVArvYsf6C4eSsXuw-2FU5wL2jqvoaSdrd3zRExZ1j-2FUhhyVOcmC8WVrc2330iSguQ4FKJKFOi2haF-2Bzy8dSMLW7OP-2FsBk6kuvdlhnV5NeJuhY9ttAg3f8eG-2FwWVC9zOPiPV8KAn7xQhnM60VOJOcr52EwKSEisLIO3vCBjWfKA3jANnpTib7TKaWOFxHqUIw-3D-3D\n Or, copy and paste the following URL into your browser: \n https://links.twiliocdn.com/ls/click?upn=3kZIcBV84MSbPEonqfrF6dGb3PJ6jbldw7J3yS57HqemXns2WYta3RoHKq8W8aC7vmJbetPeRD2ZTK1LBQt8SP1ZOi4eeSRR7qumWAqEMC7LbNOp57xIegLtkumAJzoMNrnMqNPIi2GqFrB-2FnuNVxfva14Gp-2BMbKOZyNs4NDeD4DKd7w4jwrMYxKS-2Bp72zyky-2B8tgn3DxbQMg2kml660rvV-2FrXXwCSSK460SRFK5AdsrmRU6zS-2FLdSrZclaYX-2FO27iFmr3zUELwNlvDF5vPEBkG4B1gy-2FWbZbfDj-2BHQN6X3sF7iC4KGeXTGofnWwKYgazjrKUjVsoWHxToZ3J8Pf0Q-3D-3D5BkI_Ip066xcHsou6K-2B6lU-2B2N2ewHcZ4uyLP8EdP2zo391TTsDZgggmmaSnCfSRmUMDXlaBxp5welj55c2A-2Fn4H6GmfFCUtt8iw2Q373dh-2BDJUt2m2M4ziU94HYGnH6IBO7WDuvo3Zr3eOIpGI0YYih7DTlIHqerhjuJyYN44lJaPhvHXObSP5pedgees-2Bu0r0AXtMN5gZ-2FwjPIeZmlPTbtPGmnh-2B4QAAFZCBZMt7rt5YunwCuTEwxQ27JaPo7KVUHxZNuPhmcgQdEKn-2BuKEwkwyCVg-3D-3D\n This system email was sent to Matheus Vieira Gonçalves ([email protected] @ mailto:[email protected]) regarding your Twilio Account\n (ACc8c3ab9eba51f5b4a9609f7ef9e293f6)\n by Twilio, Inc., 375 Beale Street, Suite 300, San Francisco, CA 94105\n If you have any questions, simply respond to this email and we'll be happy to help.", 5, 7, "ordinal not in range(128)"], "exc_module": "builtins"}

https://api.tunelator.com.br/admin/django_celery_results/taskresult/127005/change/?_changelist_filters=task_name%3Dsend_redirect_mail

Document the API Schema

Schemas

  • authentication
  • content
  • mails
  • payments
  • plans

Texts

  • authentication
  • content
  • mails
  • payments
  • plans

  • Add 400, 401 and other responses to the docs.

add tests for background tasks

core

  • periodic_check_mails
  • periodic_clean_stripe_checkout_ids
  • periodic_clean_expired_forgot_password_sessions
  • periodic_delete_old_mails

authentication

  • send_recovery_link

mails

  • create_mail_user
  • send_redirect_mail
  • check_user_late_mails
  • save_user_late_mail

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.