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

node.js unit test resources

Any good resources for learning automated testing a rest api with Node.js/Express.js? Preferably, one that you've tried or heard good things about.

Symfony - Twig template rendering

Can you render a set of twig template files locally without having to use a route controller to do so? My experience with Symfony is limited, and I have been slowly chipping away at it, I'm at a point I can comfortably write templates and controllers on my own projects and have played around with doctrine. However, a company I work for has its website managed through a proprietary CMS built on the framework, which only runs if you have the correct image installed locally. They don't have controllers that I am familiar with and only work via the platform / locally installed platform. I'd like to be able to view the templates so I can see what is going on....

why else statement runs even if the if statement being true?

Guys, why the else statement runs even if the if statement is true ```js // file manager in node js --- FIRST PROJECT const fs = require('fs'); //file system module...
No description

Express with tailwindcss Issue

I am using tailwindcss for the express project , I have done the required steps - created tailwind.config.js , postcss config file and import tailwind directives in style.css . But the tailwind is not getting applied to .pug files Code - https://github.com/Tribhuwan-Joshi/inventory...

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....