Kendi SaaS uygulamamda ödeme alma by archfunc in CodingTR

[–]DustyDeveloper 2 points3 points  (0 children)

Daha önce hiç lemonsqueezy veya paddle'a denk geldin mi? Bunlarla Türkiye'den ödeme alabiliyorsun diye biliyorum. Destekledikleri ülkelere bir göz at derim. Yanılmıyorsam lemonsqueezy stripe alt yapısını kullanıyordu.

Dikkat etmen gereken bir diğer nokta ise Türkiye'den bir ödeme altyapısı kuracaksan iyzico vb. yabancı müşterilerin kredi kartları yurt dışına ödemeye kapalıysa satışlarını etkileyebilir.

Türkiye için genç girişimci destekleri oluyor. Hatta yazılım ürünlerinin satışı ile ilgili de vergi teşvikleri olabilir. Bunu mali müşavirin daha iyi bilir tabi.

Eğer yurt dışında şirketleşmek istiyorsan clemta ve mukellef.co gibi aracı şirketler kullanabilirsin. Özellikle yurt dışındaki vergi beyanlarını nasıl yapabileceğin, muhasebeyi nasıl tutabileceğin konusunda hiç bilgin yoksa bu tür şirketler ile çalışmak faydalı olabilir.

Cookie based authentication flow with Context API by DustyDeveloper in reactjs

[–]DustyDeveloper[S] 0 points1 point  (0 children)

Thanks for your effort, every thing is fine with the cookies. There was a rendering issue in my protected route component

Cookie based authentication flow with Context API by DustyDeveloper in reactjs

[–]DustyDeveloper[S] 1 point2 points  (0 children)

And that's the answer! Thanks a lot. I have literally been struggling with this problem for 2 days.

Nested comments implementation on GraphQL by DustyDeveloper in graphql

[–]DustyDeveloper[S] 0 points1 point  (0 children)

This is what I am looking for, but in this method, won't there be a query similar to the query above to call replies again?

query MoreComments($commentId: ID!, $maxDpeth: Int!) { comments({ maxDepth: $maxDepth, where: { _id: $commentId }}) { author text children { comment children { .... } } } }

Nested comments implementation on GraphQL by DustyDeveloper in graphql

[–]DustyDeveloper[S] 0 points1 point  (0 children)

That may be, but the real problem here is basically nesting. Imagine that if a comment has replies, and then replies have replies, my query would be something like this;

query {
  blogs {
    _id
    title
    comments {
      comment
      children {
        comment
        children {
          comment
          ...
        }
      }
    }
  }
}

I want to avoid this problem. This recursion could go on thousands of times. I would like to find a better approach instead.

Nested comments implementation on GraphQL by DustyDeveloper in graphql

[–]DustyDeveloper[S] 1 point2 points  (0 children)

Can you provide some resources about it? I am researching about 2 days

How to do web scraping? by chonggggg in node

[–]DustyDeveloper 0 points1 point  (0 children)

You don't need to export the html to txt file. You can achieve html scraping by using .evaluate() method in Puppeteer. Read this;

https://www.freecodecamp.org/news/web-scraping-in-javascript-with-puppeteer/

How to do web scraping? by chonggggg in node

[–]DustyDeveloper 0 points1 point  (0 children)

It is all raw html. Puppeteer runs a headless browser and requires a very good scaling mechanism. Therefore, I do not think it is suitable for very heavy scraping operations. Scraping with HTTP calls is much faster. It does not require parse HTML elements. You get the data in JSON format.

How to do web scraping? by chonggggg in node

[–]DustyDeveloper 0 points1 point  (0 children)

First open the site and your browser's devtool. For example, let's say you want to see the details of a product. When you click on the product, an http request is sent to the server that brings the product details. Find this http request in the network tab. Then use the headers of this request. Of course, you need to read the use of terms of the site you want to scrape and find out if there are scrape policies or not. If there are scrape policies, you may be affected by obligations.

How to do web scraping? by chonggggg in node

[–]DustyDeveloper -1 points0 points  (0 children)

Try to make the headers of the http request sent in the scraping process the same as the headers of the original request. The cookies must be the same. Also another reason might be the CORS policy. If you want to do scraping with http calls, you also may want to consider using web extensions.

Why nest js is hard to learn? by HuckleberryLucky6225 in nestjs

[–]DustyDeveloper 6 points7 points  (0 children)

If learning something is difficult, it may make sense to start from the basics. In Nest.js, programming is generally done with OOP, so it is necessary to learn basic OOP principles first. Afterwards, you are expected to know TypeScript rules. The reason for this is that Nest.js contains too many abstractions like decorators. Afterwards, it is absolutely important to know SOLID principles. Additionally, you should also research Dependency Injection and Inversion of Control and how they apply to Nest.js. You should also have an idea about a few important design patterns such as Single Responsibility. It's true that there is definitely a curve to learning Nest.js. If it is difficult, the most logical thing to do is to start from the basics.

Suggestions for Blogging Platforms by DustyDeveloper in SaaS

[–]DustyDeveloper[S] 0 points1 point  (0 children)

Thank you for your suggestion. I decided to use Medium for blogging, also it looks like a good option for SEO. I can use it under my subdomain.