How does frontend connect to database?

Backends and frontends communicate with each other using REST APIs. So, in your backend, you should create a REST API, which when hit would give query your database and send over data in form of a JSON. Your front end should make an ajax call to your REST API and process the returned JSON.

Sizin İçin Seçtik  Is Python useful in front-end?

Leave a Reply

Your email address will not be published. Required fields are marked *