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

What ORM would you recommend for connecting a simple Express.js app to Postgresql?

Hey, guys. I've got an express.js app that is not sophisticated at all. I'm just testing out some backend concepts that I'm interested in, but this is the precursor for the backend of a react app that is similar to an online shop. My question is in the title. I'm curious to hear your recommendations, and thanks in advance :)

Delete users from DataBase

I have an website that displays a table with the users that are in the database. I have the function to delete the users but I can't make it work. I have a folder named "Controllers" with every single function to login,logout.... . And I make one named "DeleteController" and in there I want to be the controller of the delete function....
This is the Delete user function

How to choose a backend stack

Soon I'll start planning the development of a Chrome extension This particular one will require a backend, database, auth and payment processing with PayPal Considering I've been in frontend for over 10 years, I'm not proficient in backend and I need some help learning how to plan stuff out, what tech stack to choose and best practices, as I don't want to leak user data...

AWS EC2 - T3 micro - Server crash

Has anyone experienced a sudden surge in CPU usage, leading to server crashes? This issue has been occurring frequently without any identifiable reason. I'm unsure about the root cause of the problem. Currently, there are only around 900 users. I haven't identified any loop-related issues, and I don't believe it's an IP address problem either....

Deploying help

I am getting "module not found" error when i am deploying my backend through onrender even though packege.json contains the required modules. Before naming server.js to server.cjs, it was deployed succesfully but after i had to rename server.js to server.cjs, it is giving this error. Any fix?
No description

strapi get request 404, what's the problem?

complete code is here : https://github.com/safak/youtube2022/tree/ecommerce filtering using type property both have this problem. ```GET http://localhost:3000/products?populate=*&[filters][type][$eq]=featured 404 (Not Found) dispatchXhrRequest @ xhr.js:251 xhr @ xhr.js:49...

Looking for some tips/guidance on diving into Back-end

Hoping this is the right channel for this! I'm wanting to start learning back-end, having spent all of my time so far learning front-end. I'm currently learning Svelte, so I did think perhaps I just continue and learn Sveltekit and that's "technically" full stack, but probably not the best way to learn? so I figure hey, why don't I just learn NodeJS (and Express I guess)?! So that's where i'm at right now....

CSS connect to the files

Who can help me out 😄 I can't get my CSS connected? I already tried ./, ../ .../ or even just / nothing works. I hope with the pictures everything is clear? ...

Where I can find backend developer for write web-site together?

I want write site-restaurant with backend developer together I'm frontend developer Site functionality: auth/book a table/add to cart/payment ...

NPM: npm init is not creating a node_modules folder

I downloaded a GH repo, a react app, which did not include the node_modules folder, but already had a package.json with react scripts, "start" script for ex. Navigating to the project folder in terminal, I reach it, and then do an npm init to initialize, and I was expecting a node_modules folder to appear. I then go to start the React script with npm run start but it's telling me the command...

im not authorized to get users posts

i can pull posts off my rail server with prisma, but i cant pull a users posts because im not authorized to, im using google auth, where do i get the auth to do so?

Tutorials on how to spot & diagnose javascript bugs?

A Webflow site I’m working on crashed and I’m in contact with their support team to fix. That said, I want to be better prepared to address/preempt this in the future. Are there any really outstanding tutorials you’d all recommend on how diagnose and fix bugs in javascript?...

How connect frontend and backend? (solved)

I have fronted on react and backend on C# How I can connect it? I know something that I need use REST api but I'm absolutely newbie on it If you know how I can do it DM me please ...

move_uploaded_file() function shows error!

I am on windows. I am using XAMPP. So when I use this function
move_uploaded_file($_FILES['image']['tmp_name'], $destine);
move_uploaded_file($_FILES['image']['tmp_name'], $destine);
Problem is there is a warning coming which says that this file does not exist....

POST contents of a listbox

Hi! I have a dual listbox thing where the left and right is populated from a database. There's some buttons and a bit of JS that allows items to move left and right between the two. Basically copied this and added my own database logic: https://codepen.io/afrost/pen/EyQOxx My data/schema is pretty simple - id# and a name....

Express JS Router: persisting data

I have some "router" modules being exported into my app.js from a people.js & auth.js file. Both of these router modules (people.js & auth.js) are require()'ing an array of objects called people, which is being module.export'd out of data.js. Each object inside this people array represents a person', each holding an 'id' and a 'name' property....

submiting a form

how can i prevent a form from submit .i try it suing the JavaScript but it doesn't work

Receiving an axios.post() request in app.js

This is my axios.post() sending my form's input.value to the server ``` const btn = document.querySelector('.submit-btn') const input = document.querySelector('.form-input') const formAlert = document.querySelector('.form-alert')...

Not seeing app.post() network request reflected in Chrome Network tab

I have a simple axios.post() request to 'api/people' When I submit the form I should be getting a Network response in the dev tools that when I click on it, under Headers, says Request URL: https://localhost:8080/api/people...