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

Ninjucks not wroking

I was following the Kevin's video Turn static HTML/CSS into a blog with CMS using the JAMStack. Which included the steps of -Github file - Install Node.js - run npm init -y in terminal - npm install @11ty/eleventy --save-dev...

Change install Location.

I want to run the command of npm install @11ty/eleventy --save-dev. But it's making folder outside of the folder I want to. How do I change it to go to the specified folder as I got multiple folder. Picture for reference....

Need help modelling a mysql prisma schema

I am currently making a quiz-type website and need a database setup for that, however I do not know how to model it in prisma, any help would be appreciated. I want to have one table with all the users, who will have all the standard attributes along with one organisation attribute. I need one table that will log the users attempts, and one table with all the organisations...

Model problem with mvc approach in current calendar project using laravel

I'm not sure if Event and User are models or if user has an array of events field in the user table. Need to make this connection in order to establish how dates are handled. Maybe Laravel is overkill for this scale of project since user only has their calendar page.

Styling error on Wordpress theme, after deploying to Github Pages

Hello, I'm not sure if this is the right channel for this question but hope someone can help. I've used the Simply Static plug-in to compress my Wordpress theme to HTML, so I can deploy to Github pages. However, the site has broken styling whereas just the index.html opens fine. The issue is only when opening the link to the site: https://alanrobert.github.io/the-butty-bar-static/ ...

A general curriculum-path thing for Golang

Sharing a note I made to help learn go for the web. Looking for some feedback, especially at the end.

Data Flow Diagram simplify

Hey guys I cant find any tag to post this DFD. So I will try to post this here. Can you guys suggest how can I simplify this Data Flow Diagram? Maybe Level 0 - 1. We have a system that is anti fraud system in a online shop app. If the customer has a low merit points which means the customer cant order many items in the shop....

Need help on deciding a web stack

I am currently in highschool, and pretty decent in javascript and python, and I need to build a website that will have users, and levels for a quiz. While I have looked around and the general consensus is using firebase for the backend with either vue or react, I was wondering what would be the easiest and most beginner friendly path to choose as someone new to back end web development

File not found

Can someone help in node issue. I building basic info site project . The site is working ok when run locally but when I am hosting it on replit , its only showing the main page , on clicking other links it throws error https://replit.com/@Tribhuwan-Joshi/BasicSite-3...

how to add payment button?

Is there a way I can add and make the button like Pay $20 if the price in cart is $20 ?

DKIM and SPF?

Obviously I can google and pick a link, but I was wondering if anyone has a decent resource they recommend for this? I'm terrible with email shit, but google's moaning about it. ----- More detail: ...

I don't understand error handling middlewares (Express)

I'm learning from fullstackopen.com and now I'm going into error handling middlewares. This is their demo code for this part : https://github.com/fullstack-hy2020/part3-notes-backend/blob/part3-5/index.js My understanding is that middlewares need to have next() for the next middleware to be executed. Why the demo code shows ... ...

Cannot push changes to github

In the terminal, I've given the following commands:
git remote add origin REPOSITORY_NAME
git remote add origin REPOSITORY_NAME
git branch -M master
git branch -M master
when i try to push changes using git push -u origin, it said I've to enter git push --set-upstream origin master....

Fish out of water in server side questions ...

Hi! I was just offered a web dev job by a friend, and since one can't sit and to tutorials for the reste of ones life I said "Sure! I'll fix this for you!" ... and now I'm shit scared, haha! So I have a a few questions, and I don't expect you guys to solve them all, but I need to know how to frame the problems so I can ask for proper help from developers I know can fix this. ...

paginated

This a simple one just confused, in making paginated APIs how do I know where to add the next property so the frontend developer knows it has a next page...how do I check where the next is going to be a + 1 or it's going to be null, in a database,

Correct Response code to send when DB connect fails

Which HTTP code is semantically correct to send in response to failing to connect to a database? 500 (internal server error) is a good catch-all, but it doesnt seem not be specific enough. 503 (service unavailable) is what im leaning towards but I'm not sure if it makes sense to say that the database is actually down at this time even if it fails to connect after the maximum retries...

Streams

Am using express I want to read a file using readStream in express and send to the frontend each time a buffer is ready...I want to know how to get the data on the frontend for each buffer, not waiting till all is fetched and combined into one response, it's music data with each response can I add to audio src html type to create some sort of streaming experience, is this possible? A good resources (video preferably) would be nice I've searched

host website

how i can host my website that build with nodejs and mongodb in internet server

Website using cached version

Hey guys, I've finally finished making my website. Whenever I make some changes, I have to press shift+reload to see the changes to clear the cache. I've tried everything to fix it form using head tags in my code to purging the cache from cloudflare. What are some other steps I can take?