Sparta did it for oh, around 400 years or so, give or take a decade.
Of course it wasnt a nation by todays standards per say, but still it worked for them.
They also managed to dominate all the other greek city states for the better part of their existeance with their system too, including Athens, until of course Phillip and Alexander the Great came along.