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

Vanilla Node.js vs. Serverless Functions for Database Management: Seeking Recommendations and Advice

Project Requirements: -User registration and login with password hashing. -Storing form submissions in MongoDB. ...

What is the process of authenticating an application(PC/Mobile) through external browser?

I am trying to implement authentication in an application, which requires authentication to process on browser and redirect to app after successful login. Like it is used in various applications eg: Spotify. Tech. used: Electron JS, Typescript, MongoDB. I searched a lot but could not find any relevant solutions, any suggestions would be helpful....

Best Practices for Securely Sending Form Submissions via Email in a Web Application

Hi everyone, I'm a junior developer working on a website, and I need some advice on the best way to email a business owner when a user fills out a contact form and clicks submit. I initially looked into EmailJS, but I wasn't comfortable with it as it exposes API keys. Now, I'm considering using Nodemailer....

How to implement cache in an api that return a random fact

I want to implement cache in an api that return a random fact I’m using node.js and hono and prisma...

Firebase staging help

I'm new to Firebase and to back-end stuff in general, and I'm trying to use Firebase as I consider it a friendly way to integrate a back end into my project, which is a Chrome extension Recently I've been trying to tackle the issue of setting up a staging environment. However, firebase hosting:channel:deploy staging isn't a great solution because the generated URL is short-lived, yet I need to put the URL hardcoded in the extension and distribute it to test users What would be a better way to tackle this? Thanks...

PHP info not loading

Hello, In the php info : "Configuration File (php.ini) Path no value Loaded Configuration File (none)"...

How to synchronize session IDs between Socket.io and API requests using Vite and Express?

I'm working on a project where I need to synchronize session IDs between my Socket.io connections and API requests. I'm using Vite for the frontend and Express with Socket.io for the backend. However, the session IDs for WebSocket connections and API requests are not matching. `const sessionConfig = { secret: config.app.Session_Env, resave: true, saveUninitialized: true,...

google login

hello guys, im developing system in laravel and i want to put a system login and create account with google option, can someone give me a tip for these ? Thanks !!!...

Necessity checking if video exists or not

```js export const addComment = asyncHandler(async (req, res) => { const { videoId } = req.params; if (!isValidObjectId(videoId)) {...

User Logins

Hello, I have made a MongoDB Database Playground within my VSCode and I am wondering if I can replace what is already in the database, with Usernames and Passwords for users? Code:...

Low quantity image storage

Hi, I’m creating a shop backend in Go with MongoDB as a database and I need to store product images for a relatively low quantity of products. After looking around, I wasn’t sure what would be the best option to store these images. I could either use GridFS in MongoDB, Cloudflare R2 or Cloudflare images. CF images seems like it’ll be cheep but I’m unsure if it’s worth adding the complexity of another service when MongoDB can store images already. There is also the concern that there won’t be many products (probably under 50) so that plays in to things too. But, CF images does do optimisation for me so that’s a plus. I’d love to hear your opinions on what way I should go!...

container vs VM for monolith application

Hi everyone, so I'm planning to build a SaaS app since the job market isn't that spectacular, however I have little experience (actually none-I'm "self taught") with deploying productions apps, server performance and costs . I plan to build the app using monolithic architecture but I'm not sure what is the best way to deploy it cost effectively, I have deployed containers on EC2 and ECS before for practice projects and I liked how you can spin up multiple containers to handle request spikes wi...

Create Hacker Website Login Page in html

Like Share and Subscribe My You Tube Channel : @WebDevXpert Create Hacker Website Login Page in html and CSS #ytshorts #hacker #viral #trending #loginform: https://youtube.com/shorts/x9hjoFx0Too...

MS SQL & T-SQL

MS SQL & T-SQL Anyone got resources for learning these?

JavaScript host like Cloudflare Workers & Glitch had a baby?

I remember finding a JS hosting service, kinda like Glitch, but less FE & more BE/REST with generous free tier. Can someone please help share their glitch alternatives?...

Why is my app slow in production?

I recently deployed my new Next.js 14 app to Vercel and noticed it takes quite a while to even show the page... navigating to other pages is slow as well. However when I run npm run build and then npm run start on my machine everything works nice and fast as it should. Did I maybe do something wrong while deploying? Any help would be much appreciated. Live site: https://bt-snapgram.vercel.app Source code: https://github.com/boristenkes/snapgram...

DMARC: None vs Quarantine

Anyone mind ELI5 the difference between my DMARC policy of 'none' and more proactive policies? Afaik 'none' should count as having DMARC set up, but doesn't prevent spam? But should I be wary of setting it to 'quarantine'?

How do you properly close a php session before closing the browser?

say the user closes your site (tab or browser) and you want the session to be destroyed because you dont want an active session when the user turns their browser back on and goes to your page. How do you detect them leaving your site to close the active session?

Where to declare a types file

Is there a convention to place a types.d.ts file? My project structure looks like this: - client folder and server folder are kept inside the root folder (.git). - These folders have their own package.json and tsconfig.json files....

How to link PHP with ReactJs

does anyone know how to link reactJs with PHP or have course about this i wanna know about it