Welcome Guest, Not a member yet? Register   Sign In
Is it possible to Seperate Front-end and Back-end on two different servers?

Hey Codeigniter family,
I was wondering if there is a way to separate Front-end (and all relevant files) on a server and save the Back-end (controllers and models) on another server and communicate between them?
I was asked to separate between them as a safety measure to protect all access files (database credentials....).
Thanks in advance.

Yes you can do this, but your front-end must be independent of your back-end. In this setup, the back-end can be a REST API and the front-end call the API with Ajax requests to retrieve the data. The front-end can be a CodeIgniter app, or something else, like Angular or anything you like.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/

Theme © iAndrew 2016 - Forum software by © MyBB