diff --git a/.gitignore b/.gitignore index 7e4d9f8..40bc30c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,12 @@ .DS_Store node_modules +loader/venv + +# dist folders +dist frontend/dist backend/dist -loader/venv + # sqlite file *.db *.sqbpro diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..79d2f09 --- /dev/null +++ b/setup.sh @@ -0,0 +1,18 @@ +#!/bin/bash +parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) + +cd "$parent_path"/frontend +npm install +npm run build +cd ../ +cp -r ./frontend/dist ./dist/frontend + +cd "$parent_path"/frontend +npm install +npm run build +cd ../ +cp -r ./backend/dist ./dist + +cp ./backend/package.json ./dist/package.json +cd "$parent_path"/dist +npm install