John Patrick Onyango
John Patrick Onyango
KPCKevin Powell - Community
Created by Zach on 1/19/2025 in #front-end
Hide popover on same document link navigation
with css its going to be a lil tricky,,, not sure if will work though
<style>
:target ~ [popover] {
display: none;
}
</style>
<style>
:target ~ [popover] {
display: none;
}
</style>
8 replies
KPCKevin Powell - Community
Created by lanszelot on 1/19/2025 in #front-end
Flex Center problem (can someone help me please?)
incase you want even space between the images just add gap
12 replies
KPCKevin Powell - Community
Created by lanszelot on 1/19/2025 in #front-end
Flex Center problem (can someone help me please?)
12 replies
KPCKevin Powell - Community
Created by lanszelot on 1/19/2025 in #front-end
Flex Center problem (can someone help me please?)
you can center the container holding the images div , i.e giving the div with .images class display flex with justify content center
12 replies
KPCKevin Powell - Community
Created by Zach on 1/19/2025 in #front-end
Hide popover on same document link navigation
try adding onclick events to close the popover i.e
document.getElementById('mobile-nav').addEventListener('click', (e) => {
if (e.target.tagName === 'A') {
e.target.closest('[popover]').hidePopover();
}
});
document.getElementById('mobile-nav').addEventListener('click', (e) => {
if (e.target.tagName === 'A') {
e.target.closest('[popover]').hidePopover();
}
});
8 replies
KPCKevin Powell - Community
Created by lanszelot on 1/19/2025 in #front-end
Flex Center problem (can someone help me please?)
just remove justify-content center from the div with #test id
12 replies
KPCKevin Powell - Community
Created by Ganesh Dole on 6/11/2024 in #front-end
How to store redux store to localstorage and get it when page refreshed
like @b1mind said, it's not recommended to store JWT in local storage, but if you have to just check for your token within local storage before initializing your state, if it does exist set it as the initial value of state in your redux slice
3 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
thanks, I'll check this out
51 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
atleast they have unlimited free tier VMs in the first place, I'll check that out
51 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
php is nice but the dollar sign syntax is a real pain, but yes, php is easy to use and quite powerful, I recently build a backend API with vanilla php without any libraries and it was easyyy
51 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
php with laravel or just vanilla php?
51 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
what do you use for your backend?
51 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
plus i do not want to have more containers than users 🙂
51 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
vercel is very good for fronted, i have never deployed a backend to vercel though
51 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
AWS hasa good free tier for ECS, but I m open to other options
51 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
most of the users would use it actively during the first week of the month because that's when payments is made, but yes, i suppose you are right. I will rent a cheap VM from digital ocean for starters
51 replies
KPCKevin Powell - Community
Created by John Patrick Onyango on 5/23/2024 in #back-end
container vs VM for monolith application
postgres, nestjs,redis for the backend, next js and tailwind on the front end
51 replies
KPCKevin Powell - Community
Created by DimitriUI on 4/25/2024 in #back-end
React + PHP - How to deploy the API files
Hi, you should deploy your php api and use endpoints from the hosted api, you can deploy on vercel or render if you dont know how to setup a php server , use this article https://hostwizly.com/deploy-php-app-on-vercel
2 replies
KPCKevin Powell - Community
Created by pain25_ on 5/6/2024 in #back-end
can anyone help me to deploy this on vercel plz?
try that
3 replies
KPCKevin Powell - Community
Created by pain25_ on 5/6/2024 in #back-end
can anyone help me to deploy this on vercel plz?
{
"version": 2,
"builds": [
{
"src": "src/./app.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "./app.js",
"methods":[
"POST",
"GET",
"PUT",
"DELETE"
]
}
]
}
{
"version": 2,
"builds": [
{
"src": "src/./app.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "./app.js",
"methods":[
"POST",
"GET",
"PUT",
"DELETE"
]
}
]
}
3 replies