I highly recommend checking out some of the “beginner” resources available on other websites. They will likely help answer many of these questions from newbies. Here are a few good ones:
Everything You Need to Build DIY Guitar Pedals
I could go on, but some google searches will give you more links and websites to get you going.
I hope it helps. Good luck!