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

How to build this db model

Working on a NoSQL implementation of this discord bot me and my friend are setting up. What it'll do is iterate through all messages and get the amount of emojis each user has across all their messages. I was wondering what a good model for this would be? Should we build a model for each User, and then iterate through all their emojis? I have this so far: ```ts...

Backend

How do I make it? How do I connect it to my front-end? I'm new.

Is there a way to use the POST value in the method attribute of form element on a local server?

Hello guys, sorry to disturb you all; just read something like what we can't use the post value in the method attribute of the form element if we are running our html file locally, is there a way to change that?

Search bar

Whenever i input anything into my search bar kujo beat down gets removed and the others stay
No description

PHP Laravel SQL setup problem

I'm so junior and i started to setup these techniques but it give me an error `` SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists (Connection: mysql, SQL: create table users (id bigint unsigned not null auto_increment primary key, name varchar(255) not null, email varchar(255) not null, email_verified_at timestamp null, password varchar(255) not null, remember_token varchar(100) null, created_at timestamp null, updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
at vendor\laravel\framework\src\Illuminate\Database\Connection.php:825...
No description

Laravel 11 Inertia Js Forgot Password

Hi guys, may I ask for your suggestions on how I can use the controller of the built-in Laravel Breeze forgot password/reset password feature for another user type? I have created another user type called "establishment," and I just finished the authentication for this. I want to implement the forgot password and reset password features that the user type has (built in with Breeze). Is there a way I can use the user controller to also reset the password for the establishment account?...
No description

JsonWebTokenError: jwt must be provided

I attaching the backend and frontend both code snippet.
No description

Web Scraping

Hi guys, recently I've been thinking about inserting a function to import a certain product into my project, so I need to know web scraping, does anyone know content, maybe in videos can someone teach this area better?, I want to do it in javascript

How to make simple login system with php

I have made small project, website and frontend is all done, now as im new to backend i need to make simple system for logging in and registering, i realy cloudnt figure it out, tried using chatgpt but still it doesnt work, its on hostinger i will provide some relevant code for you to examine it. ` <form action="register.php" method="POST" autocomplete="off" id="frmContactus" class="contact__form mt-8 mt-lg-10 text-start"> <div class="d-flex flex-column gap-5 gap-lg-6"> <div class="row g-5 g-lg-6">...

[Twig] Is there a way to clean up this dynamic string?

I'm trying to build a dynamic class string: ```twig {% set classes = 'custom-image ' ~ alignment ?? '' ~ ' ' ~ decoration ?? '' %} ...

Using C# with Threads [META] Graph API?

I'm currently attempting a second go with the recently released Threads API. Assuming I have everything else correct in the dev portal, I'm not sure if I'm missing anything. I was curious if anyone who might have more experience with any of META's API's or C#, could possibly help me see what might need to be adjusted. In order for this to work? ...

How would you store the data for a blog posts with .NET and Entity Framework?

Trying to wrap my head around how this would work and a lot of information use PHP and are from 10+ years ago, so it's not fully relevant at the moment for what I'm doing (at least I don't think so?). I am setting up a blog like website. There will be posts, with potentially a lot of characters. I've heard that the best way to handle posts is to essentially have them saved as html or markdown files in a server and have the SQL table link to the location of this. The only thing is I have no idea where to start looking for how to do that. What's this called? When I attempt to search up static html files, I get information on how to use MVC which isn't what I need. I have Angular as my frontend and .NET 8 as my backend. Currently it's only running locally so I'm doing everything through SQL Server Management. Servers are a weakness of mine, so I don't fully know what I'm doing, any sources or documentation or articles would be very appreciated....

Laravel 11 Target class does not exist.

Hi guys I just wanna ask what are the solution I can try to fix this error? When Im clicing on my log out href on my dashboard, it also direct me to the url of localhost:8000/establishment/logout instead of...
No description

OOP guidance (for myself)

I'm having a real tough time grasping OOP for a project in school using Monogame, like I can't quite figure out how to reference variables / sprites and such from other classes, maybe i'm just being silly but I was looking for any in depth OOP guides, tips or even talks from people

Troubleshoot with running mysql via brew

Do you all know what happened here I installed mysql via brew in macos m1, whenever i run brew services start mysql it shows me successfully but when i check it again with brew services it's stopped ...

how to prevent logging out user from refreshing the page in express js

so i use express sessions and reactjs for frontend . when i log in the session is set username correctly and can access on other routes as well but once i hit refresh the user log outs , how to prevent this ? ```js app.use(sessions({ secret: process.env.SECRET_KEY, resave: false,...
Next