#need help creating profiles based off csv file
52 messages · Page 1 of 1 (latest)
- Create the pages with the usual stuffs.
- Use something like https://csv.js.org/parse/ to load a csv file stored locally.
- Make step 2 work first initially, don't bother with the next step until you can load and render the file.
- Follow the docs on how to make dynamic routes. This would give you that page-per-user feature.
- Create your mock search feature, have this be an input that redirects to one of your dynamic pages.
- Based on the search results, write a couple of scripts to filter your data.
And then after filtering I could just put it in the different tables manually right?
Like separate them into different tables myself manually I mean
When rendering? Shouldn't it be just a single table?
I'm imagining /profile/1 would show a table containing the data for user 1
Nah it’s more something like different tables that have different values so like
For example
Something like this ^ kind of
Oh yeah, use the data wherever you need it.
Okay bettttt
I’m not crazy thinking this doesn’t seem like a too difficult thing to do in theory once I figure out how to go about things right?
Yeah, its beginner-level kinda thingy.
Bet appreciate it lol
The time it will take you to finish it depends on your experience though.
Hypothetically how long would a non beginner take lol
Dunno, lots of people here get stuck when it comes to the SSR specific stuffs.
I just need the main UI stuff done so I feel I could do it in 20 hours if I did it straight hopefully
Yeah, good luck
Thanks! Appreciate it
@minor quartz have you managed to just show the table of players in a page?
or something like just a text telling how many players exist on the table
hehe
I tried out buying a template just to see if that would help me see where to start
- the template did not help -
so
- is not running -
But I think I have a grasp on how to approach the problem now maybe?
you're making valid questions, but development is an iterative process, try to focus on one simple feature for now
Alright! Yeah it’s trial and error I think right
you can think about filtering the players, and that is possibly a feature you'll need eventually
but
before you get there you need to first get the data surfaced in your application
i'm not exactly sure where you're at, but right now i'd focus on getting the target data surfaced in my app somehow
doesnt matter in which page
and as someone said, you don't need to worry so much about efficiency right now, as this is an iterative process, you can come back later to make it efficient
It’s basically a one pager but yeah I get what you mean
I’ll just try to get something to work first 😂
and this is all so you don't risk getting overwhelmed, which happens to a lot of ppl 😄
of course, if you feel confident you can tackle all these things in whichever way you want
im getting the same import error lol ugh
without some visibility into your code this is really vague 😦