|I have the cable modem connected to the switch then the switch to the router |
Stop right there!
Here's how it should look:
Cable Modem >> WAN Port on Router >> LAN port on Router to Managed Switch >> clients/servers
This way everything in your entire LAN is behind the firewall and protected from intrustion by the firewall in your router.
Should I set my server up as a file server?
That depends. How one sets up a server depends on what they require it to do. I suspect this is all you need do with it though considering your router will provide DHCP and NAT as well as the firewall.
Also what is the correct way to set up my server and switches so that everything works together or should I use a hub on my work area computers?
As I described above. I suspect you used the word "hub" just now because you don't know any better. A switch is the better device when comparing a hub and a switch and I don't believe anybody even makes hubs.
If your managed switch doesn't have enough ports for all the clients in your LAN you can add another switch. If your router has 4 LAN ports, you can plug an additional switch into a LAN port on the router. If your router only has a single LAN port, then you could plug your additional switch into your managed switch in what's called a "daisy chain" configuration.
It's worth noting that when connecting a switch to a switch, one should always use a crossover cable even if the switches are auto MDIX capable. The same applies when you connect your managed switch to the LAN port on your router...the router is really a switch too it just has some additional features and software included in it.