SneaX
Explore posts from serversKPCKevin Powell - Community
•Created by SneaX on 10/9/2024 in #front-end
Why does text input not shrink
I have this code, why does the text input not shrink according to its parent, it causes an overflow
30 replies
KPCKevin Powell - Community
•Created by SneaX on 4/27/2023 in #front-end
Discord oauth 2 error
Hey there, I have a working website that uses discord oauth authentication using next-auth.js and the sign in button redirects it to localhost even though I have changed the redirect uri and nextauth url to match my new domain name. Could anyone suggest a solution for this
22 replies
KPCKevin Powell - Community
•Created by SneaX on 4/14/2023 in #front-end
Help with JSON and typescript
I have a quiz with 3 sections, 5 levels, 4 branches
json looks something like this
How can I make an interface in typescript so that i can access the branch like const q = data.1.1."a"
or maybe modify the json file in a way that makes it work
3 replies
KPCKevin Powell - Community
•Created by SneaX on 4/11/2023 in #front-end
Need help with json in typescript
I have a json file
Now I want to access it in typescript as follows
But it shows
Element implicitly has an 'any' type because expression of type 'string
How can I fix this
1 replies
KPCKevin Powell - Community
•Created by SneaX on 4/8/2023 in #back-end
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
4 replies
KPCKevin Powell - Community
•Created by SneaX on 3/27/2023 in #back-end
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
40 replies