#need help creating profiles based off csv file

52 messages · Page 1 of 1 (latest)

minor quartz
#

Hi! I need to create a profile page for separate people, and then making an application where someone can look those people up and get the corresponding values in multiple mui data tables. How should I go about this?

scenic flower
#
  1. Create the pages with the usual stuffs.
  2. Use something like https://csv.js.org/parse/ to load a csv file stored locally.
  3. Make step 2 work first initially, don't bother with the next step until you can load and render the file.
  4. Follow the docs on how to make dynamic routes. This would give you that page-per-user feature.
  5. Create your mock search feature, have this be an input that redirects to one of your dynamic pages.
  6. Based on the search results, write a couple of scripts to filter your data.
minor quartz
#

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

scenic flower
#

I'm imagining /profile/1 would show a table containing the data for user 1

minor quartz
#

Nah it’s more something like different tables that have different values so like

#

For example

#

Something like this ^ kind of

scenic flower
minor quartz
#

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?

scenic flower
minor quartz
#

Bet appreciate it lol

scenic flower
#

The time it will take you to finish it depends on your experience though.

minor quartz
#

Hypothetically how long would a non beginner take lol

scenic flower
#

Dunno, lots of people here get stuck when it comes to the SSR specific stuffs.

minor quartz
#

I just need the main UI stuff done so I feel I could do it in 20 hours if I did it straight hopefully

scenic flower
#

Yeah, good luck

minor quartz
#

Thanks! Appreciate it

desert flume
#

@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

minor quartz
#

Maned?

#

Wait wdym lol

desert flume
#

wait, meant to say "managed" 😄

#

sorry

minor quartz
#

Oh my bad

#

5 hours later and I got hello world on the screen 👊

#

Jkjk

desert flume
#

hehe

minor quartz
#

I tried out buying a template just to see if that would help me see where to start

#
  • the template did not help -
desert flume
#

so

minor quartz
#
  • is not running -
#

But I think I have a grasp on how to approach the problem now maybe?

desert flume
#

you're making valid questions, but development is an iterative process, try to focus on one simple feature for now

minor quartz
#

Alright! Yeah it’s trial and error I think right

desert flume
#

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

minor quartz
#

It’s basically a one pager but yeah I get what you mean

#

I’ll just try to get something to work first 😂

desert flume
#

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

minor quartz
#

im getting the same import error lol ugh

desert flume
#

without some visibility into your code this is really vague 😦

minor quartz
#

oh fair

#

so it was just my computer tripping again the localhost stuf fworks fine