Configuration file - Patrice-H/PatriceHochard_12_30052022 Wiki

Configuration file

A configuration file allows the application to work with data from the API or local mocked data. By default, this file designates the use of data from the API.

To work with local mocked data :

  • Comment line 11 : //export const dataSRC = 'API';
  • Uncomment line 13 : export const dataSRC = 'mocked-data';

This configuration file sets the API URL to http://localhost:3000.

To change API URL :

  • Modify line 15 : export const URL_API = '[new API URL]';