If you want to build a small town with a strong local community, you need an economic base.
You can't simply have a series of national chain stores. Those are set up to send the resources of your community somewhere else.
You can't be a commuter town or a remote worker enclave. No one will have a stake in the community because one is actually in the community. Their loyalties are elsewhere.
Farming is good. But many farms are tied to large conglomerates that don't care about the farmer. This is almost as bad as the national chain stores.
What you need is to make something. A handful of actual businesses that make things people outside your community need or want so there's a net economic inflow into the community.
The economic inflow supports everything else.