Database json file and angular deployment

Discussão em 'Angular' iniciado por Sara Medhat, Setembro 11, 2024.

  1. Sara Medhat

    Sara Medhat Guest

    I am using GitHub pages to view my angular application (e-commerce store).

    Products' data are in db.json file which normally I fetch using localhost/300 and run a watch command

    What changes I have to do to make products data fetched automatically on the live version on GitHub pages

    I tried to put the data in api.jsonbin.io and fetch it suing: productsApiUrl = "https://api.jsonbin.io/v3/b/bin ID/latest"; but i have this error 400

    I tried to put the db.json file in assets and fetch it using httpClient, but I found myself in an infinite loop of code modification to avoid errors

    Continue reading...

Compartilhe esta Página