So using the numbers for the least-expensive components on the link I used, we have this breakdown:
3,249 ties per mile at $74.25 each = $241,238.25
Rail costs $33.15 per linear foot. 5,280 x $33.15, multiplied by two, is $350,064.00
At $10.75 each, you spend $69,853.50 for two tie plates per rail per mile.
We'll go cheap and only use four spikes per tie (two per rail). At $1.00 each, that's $12,996.00
That's $674,151.75, not counting ballast, fishplates, bolts, and all labor and shipping costs.