Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ritechoice23's avatar

API SERVER SETUP

Please I need some help with this situation. I am working on a project and will need to make the backend while another front-end developer will work on the front end. my question is how I will do it in such a way that the test activity of the frontend developer will not appear on the live database since he will be working on the API I deployed to a live server to do his own work.

0 likes
3 replies
Sinnbeck's avatar

Make a fake server for him. Or let him set up the environment on his computer.

1 like
tisuchi's avatar

@horlatech There are a few ways to handle this situation:

  1. Use a separate database for development and production. This way, the front-end developer can work on the API using a development database that is separate from the live database.

  2. Use a feature toggle system. This allows you to toggle certain features on and off in the API based on the environment it's running in. This way, the front-end developer can work on the API in a development environment, but their changes won't be visible on the live API.

  3. Use a development API endpoint. This allows you to set up a separate API endpoint for development purposes. The front-end developer can work on the API using this endpoint, but their changes won't be visible on the live API.

  4. Use versioning. This allows you to version your API and control access to a different versions of the API.

Ultimately, the solution you choose will depend on the specific needs of your project and the resources available to you. It's important to communicate with the front-end developer to understand their needs and work together to find a solution that works for both of you.

1 like

Please or to participate in this conversation.