From 3f8489b0ad272099ddfe2d6f60b1bd79452bad18 Mon Sep 17 00:00:00 2001 From: Louis Gallet Date: Mon, 1 Jul 2024 17:27:34 +0200 Subject: [PATCH] docs: :pencil: Update documentation --- .env.example | 3 ++- README.md | 7 +++++-- templates/index.html | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index ecf80a4..2802f6e 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ client_id= client_secret= -n8n_webhook= +n8n_webhook_add_tracks= +n8n_webhook_create_playlist= enviroment=dev \ No newline at end of file diff --git a/README.md b/README.md index cd71bd8..9d07027 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,15 @@ Make This Playlist is a web application that allows anyone to add music to a Spo ## Installation ### Docker -You can install the application via Docker. To do this, execute the following command: +You can install the application via Docker. To do this, execute the following command: +For the webhook URLs, make sure to remove the parameters, as they will be added directly by the application. ```bash docker run -d \ -p 80:3000 \ -e client_id=SPOTIFY_CLIENT_ID \ -e client_secret=SPOTIFY_CLIENT_SECRET \ - -e n8n_webhook=N8N_WEBHOOK_URL \ + -e n8n_webhook_create_playlist=N8N_WEBHOOK_URL \ + -e n8n_webhook_add_tracks=N8N_WEBHOOK_URL \ gitea.louisgallet.fr/lgallet/makethisplaylist:latest ``` @@ -26,5 +28,6 @@ To install the application manually, clone the repository and install the depend git clone https://gitea.louisgallet.fr/lgallet/makethisplaylist.git cd makethisplaylist pip install -r requirements.txt +cp .env.example .env python main.py ``` \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index cfb53b3..ff284b8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -30,7 +30,7 @@ This will be the playlist name - +