The American idea of Vertical Farms being singular 30-storey buildings is a non-sensible idea. The farms can be four storeys and wide and distributed all over the city. Even better if newly developed neighborhoods have inherent Vertical Farms.
As for electricity I am sure solar panels will do the job. As for water, well, this will have to be a necessary implementation if the idea is for the city to become food-self-sufficient.
In
this post I speak more on this topic and include a picture of a Venezuelan Urban Farm ( the government is implementing it to go with the direct democracy system also being implemented ).