From 1e8495f7e620bdfe0172b7e373ce0d5197f21e0d Mon Sep 17 00:00:00 2001 From: yatan Date: Sun, 19 Nov 2017 07:36:21 +0100 Subject: [PATCH] added server on initiator --- README | 6 +++++- initiator.sh | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README b/README index 5fe4a8f..8460c2f 100644 --- a/README +++ b/README @@ -10,4 +10,8 @@ export_links_db.py --- Insertar links dels txt a la db ***************************************************************** -get_data_from_image.py --- Obtenir informaciĆ³ sobre la imatge desde la API Clarifai \ No newline at end of file +get_data_from_image.py --- Obtenir informaciĆ³ sobre la imatge desde la API Clarifai +***************************************************************** + +cd web/ +node app.js \ No newline at end of file diff --git a/initiator.sh b/initiator.sh index 8ba1082..e075b32 100755 --- a/initiator.sh +++ b/initiator.sh @@ -15,6 +15,9 @@ echo "4 - Exget_images_from_profile.pyportar users --> DB (export_users_db.py)" echo "5 - Exportar links --> DB (export_links_db.py)" echo "************************" echo "6 - Obtenir informaciĆ³ de les imatges via Clarifi API (get_data_from_image.py)" +echo "************************" +echo "7 - Executar server (node app.js)" +echo "************************" read menu case "$menu" in @@ -36,6 +39,10 @@ python export_links_db.py 6) python get_data_from_image.py ;; +7) +cd web/ +node app.js +;; *) echo "Opcio incorrecta" ;; esac