Waweru Kamau
Waweru Kamau

Reputation: 1489

Is it OK to access one database from two different application endpoints?

I already have a web app that uses raw PHP to access a database. Now I want to create a mobile app using react-native, that will be a mobile version of the web app, thus use the same database. What is the best way to implement the mobile app?

Upvotes: 0

Views: 313

Answers (1)

Melih Korkmaz
Melih Korkmaz

Reputation: 51

You can create a Rest API both for your web app and mobile app. So they can share same logic as backend.

Upvotes: 1

Related Questions