Kevin Powell - Community

KPC

Kevin Powell - Community

A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.

Join

front-end

resources

back-end

ui-ux

os-and-tools

Send API request with IP that user provided

i want to send a request to an API and i dont want the api backend recognise the sender ip , i want it to think im using the IP that i provided.

Making my first full stack website, and I want an authentification system

So I wanna make my first big fullstack project, and between the backend functionalities, I need an authentification system, the thing is that making it all by hand is extremely long and prone to being extremely not secure. I want my first project to have a good level of security. Is it okay to use a library like NextAuth or Firebase Auth for it? Will I still be learning or will it do everything for me? Cuz I want to learn from my fullstack project to some extent, and if these auth services do everything for you in one click isn't that counterproductive? People online do say that it's very recommended to use services because they were built by pros that know how to make them secure and flexible, and in the future I plan on using them again, but how will that look like in the eyes of companies that might hire me or if I want to freelance?...

Php and node.js

can i work in front-end with reactJs and in the back-end with php and can link between the two ?

Php Json how to get property?

I have a json file. I would like to get "Zangya" (which is in "animeName") ```php $datas = file_get_contents('getCharacters.json'); $datas = json_decode($datas);...

MAX height

```sql SELECT first_name, last_name, height...

Multi-provider authentication on Firestore

I'm working on an MV3 Chrome extension on a feature that requires authentication with a third party provider Considering that I'm not proficient in backend, I was wondering what's the right way to handle multi-provider authentication, i.e. letting the user to login with both Google and Facebook FYI, I chose Firebase for several reasons: 1. It has a great integration with extensions such that when I put a listener for a collection on Firestore in the background script, it prevents it from getting terminated 2. Firebase is quite beginner friendly...

MongoDB POST ISSUE

Here, I am trying to post to the user database. I am using the saveUser API on the registration page. I have also provided images of the server and error. I have been stuck here for the past few hours. Can anyone tell me what the issue might be?
No description

How do you edit a website that's already deployed on a cloud service provider?

How do you make small changes to your website if its hosted on aws elastic beanstalk for example

Cookie from backend not getting set in frontend

Hi devs, I am trying to set the jwt token as the cookie from backend but I am not seeing that getting set in the Applications tab in the browser. Too much to ask maybe, but if someone is available can we connect. I can walkthrough the code whatever I am trying to do. I am just stuck and not able to proceed with my project....
No description

Handling POST request in Express.js

Hello, So I have this form that sends an email to a waitlist database, both the form sending form "fetch" and the express view that handles the request works perfectly fine in these two situations: - Through my local development environment - and through postman, which sends the request to the live website both works as expected, but when I submit a form through the live website and try to send it, I get a 404 error in the console and a "Cannot Post" error in the network tab....

Allow logins from multiple providers

I'm working on an MV3 Chrome extension and in the past several months I've been working on addin a paid feature that requires logging in to the extension Considering that I'm not proficient in backend, I chose Firebase and Firestore My goal is to allow the user to authenticate with both Google and Facebook So far I successfully managed to let the user login with Google and I save his UID in Firestore, but I realized that if his account gets deleted due to https://support.google.com/accounts/answer/12418290 , he should at least be able to authenticate with Facebook After he logs in with Google, he has to start a monthly PayPal subscription to use the feature, and so I pass the UID to the webhook and I update that Firestore entry...

I don't know how to deploy this Node.js website

I made a website that uses MongoDB and Node.js, and Im not sure how and where I should deploy it.

Does this make sense to be a subclass?

I'm trying to create a subclass to implement some custom functionality to a parent class. I'm making a discord bot that has a class Discord. This Discord class has a constructor that takes a token. I've created a subclass Bot that has a constructor that calls the parent function. I've done this so I can implement environment variables. ```php...

Cloudfare

can someone tell me if is that way i cretae a subdomain? in cloudfare
No description

JS array to Sqlite

Hello, Here is my website: https://codepen.io/lanszelot/pen/eYarmbN?editors=1010 This template shows how the website have to work. How can I save to sqlite database the JS arrays?...

How should I architecture an api?

Hey guys, bit of an abstract question. I'm writing a discord bot in php so I can better understand php. This will be a terminal application. I'll also have a portion of the app in python to do sentiment analysis. I was wondering what the heck are the logistics behind writing a way to communicate between the php (bot) portion of the app and the python (sentiment analysis) portion of the app? I'm assuming I can write an api between the 2, but then my question is how do I even host that? I know how apis work but I've never actually set one up myself. I'd be using a digital ocean droplet with cpanel installed, and cpanel comes with apache ootb so I'm assuming i'd need to configure it in apache...

Firebase and Wordpress

Hello, I wanna learn to build websites especially backend-side using Firebase, but I also wanna start using Wordpress as CSM for my website, are both compatible together easily? Is Firebase made so that you don't need Wordpress? I'm not sure how both would work together..

I want to create an effect and i dont know how

Warning: I'm asking this question without any knowledge in code (Doing only a bit of CSS here an there). I'm a graphic designer who try to learn coding. The effect:...

Dynamically Changing Charts

I'm trying to dynamically change some charts on Myfantasyleague.com based on the team names and colors. I can get this code to work when I'm testing via a local server on VS code, but when I load the code onto the live site, it doesn't function correctly. Can anyone tell me what I'm missing as to why these charts are not being reformatted? Script I'm using https://codepen.io/tvu1313/pen/vYwpwEP ...