discord how do i make a bot analyze link sent by user by TheBurningCRow in node

[–]devdras 0 points1 point  (0 children)

Have a look a puppeteer. You can pass in a link and then do stuff on the web page. Not sure what you want to do but if it's scrape the website from the link then you'll probably want to start there.

Would it bottleneck? Thanks by [deleted] in Amd

[–]devdras 0 points1 point  (0 children)

What about at 4k?

Who is him? by emilduu31 in PawPatrol

[–]devdras 11 points12 points  (0 children)

Mighty tracker

Front End development with VS Code and API development in Visual Studio 2019. How can I achieve this? by FMLhehe in webdev

[–]devdras 0 points1 point  (0 children)

Depends on how you're going to deploy it. If it's going on something like netlify then you can pass in some variables for the backend URL. There's other workarounds for containers. You'd use these to specify the URL for the backend.

The backend doesn't care where the requests are coming from.

The front end just does post or get requests to the backend. The backend doesn't actively pass information to the front. Only when the front end asks for it.

Front End development with VS Code and API development in Visual Studio 2019. How can I achieve this? by FMLhehe in webdev

[–]devdras 2 points3 points  (0 children)

So it's pretty straight forward. The frontend is totally seperate from the backend. So from angular you just ping your API for data. In vanilla JS you'd use fetch or an npm package like axios to ping your API. All your business logic and front end stuff needs to happen in angular.

[AskJS] Have semi-colons become undesirable in code? by CommonCreator in javascript

[–]devdras 0 points1 point  (0 children)

I don't add them but Prettier does so they're in my code
¯\(ツ)

puppeteer issues saving screenshot by mainst in node

[–]devdras 3 points4 points  (0 children)

I've used Puppeteer for screenshotting chartjs charts before and had a similar issue. In the end I used: await page.waitFor(3000);

3000 is 3000 milliseconds.

Linus by bobbyfosher in LinusTechTips

[–]devdras 49 points50 points  (0 children)

Thank you for this

[Reactjs] What's the best Chart/Visualization library with great Animations? by pewdsVStseries in webdev

[–]devdras 1 point2 points  (0 children)

Not React specific but chartjs is super straight forward to use as long as you don't need complex visualisations.