In the olden days, they used to build the temple first and then the township grew around them. But nowadays, we build the township first and then only start thinking of constructing the temple.
The offering of naivedyam to God and the offering of money into the hundis kept at the temples are all but a token of our gratitude to God for what he has done to us.
We cannot create even a blade of grass. Therefore, if we offer anything to God, it is just for our own peace of mind and satisfaction.
It is God who has given everything to us. So, if we eat food without offering it to Him, it is the greatest sign of ingratitude.
We have to offer the best to God and then take it. All may not be able to do puja and other things in their houses and offer all upacharas to God. Therefore, temples have been constructed for this purpose.
Some people have a doubt whether they should go to temples daily, or not. Of course, it is absolutely necessary to do so.
In the olden days, people never used to have their food in their houses unless they heard the temple bell ringing at the time of the morning, noon, evening and night pujas to the Lord.