You have to understand the meaning of the term SEO first of all.
What is SEO? SEO is convincing the search engines that your site is one of the best in the particular niche.
And SEO only occurs when you have already done a lot of marketing and a good amount of visitors are already coming to your site.
So, first work on getting traffic and making your site popular in several places, SEO will automatically occur.