John Patrick Onyango
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?
3 replies
KPCKevin Powell - Community
•Created by Xenon on 5/11/2024 in #front-end
need help with tailwindcss.
if you want all the tasks to have same height and display only the first bits of a task try truncate, https://tailwindcss.com/docs/text-overflow#truncate
11 replies
KPCKevin Powell - Community
•Created by John Patrick Onyango on 1/23/2024 in #back-end
CORS keeps blocking request during preflight on the browser
okay, thanks
11 replies
KPCKevin Powell - Community
•Created by John Patrick Onyango on 1/23/2024 in #back-end
CORS keeps blocking request during preflight on the browser
thanks for the input, however, I almost gave up because now it works locally but the request is rejected on the deployed version i disabled helmet in development because it was blocking sharing httponly cookies through HTTP
11 replies
KPCKevin Powell - Community
•Created by John Patrick Onyango on 1/23/2024 in #back-end
CORS keeps blocking request during preflight on the browser
this works, but since I use httpOnly cookies I can't use a wildcard for origin, and disabling preflight is not recommended...however I'll use this anyway for development as I figure out what the issue is
11 replies
KPCKevin Powell - Community
•Created by John Patrick Onyango on 1/23/2024 in #back-end
CORS keeps blocking request during preflight on the browser
11 replies