You can apply for a residence permit via https://e-ikamet.goc.gov.tr.
While completing your application, you may refer to the information kits provided by the Presidency of Migration Management. These kits will assist you throughout your application process.