evoluteur / evolutility-ui-jquery

Model-driven Web UI for CRUD using REST or localStorage.
https://evoluteur.github.io/evolutility-ui-jquery/
MIT License
183 stars 56 forks source link

Modifying config.js has no effect #15

Closed slawkor closed 7 years ago

slawkor commented 7 years ago

How exactly do you configure the use of REST? Modifying config.js as follows has no effect for me.

var Evol = Evol || {};

Evol.Config = {

    // --- using localStorage
    localStorage: false,

    // --- using evolutility-server-node
    url: 'http://localhost:3000/api/v1/evolutility/',

    // --- using postgrest
    //url: 'http://localhost:3001/'
};
slawkor commented 7 years ago

Looks like the actual config is made in evolutility-ui-jquery.js plus config.js is not included anywhere. Is this by design?

evoluteur commented 7 years ago

After editing config.js, you must run grunt to rebuild the files evolutility-ui-jquery.js (or evolutility-ui-jquery.min.js). These files include the config.js.

slawkor commented 7 years ago

Thanks, the grunt dev task did the trick.

evoluteur commented 7 years ago

Thanks for letting me know. I updated the ReadMe file.