diff --git a/docs/dev.md b/docs/dev.md index c7c4c701..66e8b0e6 100644 --- a/docs/dev.md +++ b/docs/dev.md @@ -1,12 +1,22 @@ # Development environment -Clone this repository and run: +Clone this repository and build: ``` bash -npm install +cd /var/www/.../nextcloud/apps +git clone https://github.com/eneiluj/cospend-nc cospend +cd cospend +npm ci npm run watch ``` +Or if you want to use HMR (hot module replacement), +install the [Nextcloud HMR Enabler app](https://github.com/nextcloud/hmr_enabler) +and run this in cospend directory: +``` bash +npm run serve +``` + # Public API Plan was to make Cospend public API strictly identical to [IHateMoney API](https://ihatemoney.readthedocs.io/en/latest/api.html) but there is a restriction i couldn't bypass : the authentication system. IHateMoney uses the basic HTTP authentication, just like Nextcloud user authentication. So, to get a guest access to a Cospend project, this type of authentication was first rejected by Nextcloud user auth system and then accepted by Cospend with a huge latency. diff --git a/src/components/CospendSettingsDialog.vue b/src/components/CospendSettingsDialog.vue index 8c3caf71..2fa08ce7 100644 --- a/src/components/CospendSettingsDialog.vue +++ b/src/components/CospendSettingsDialog.vue @@ -30,6 +30,51 @@