Hi Jaspreet.
We stayed in Chiavari. It's a nice town and we found it less expensive than some of the other places. There is a railway station where I think we purchased a ticket to Monterosso and then bought a one-day Train MS card so that we could visit each of the villages.