Plaudio is a little PWA which is developed for the project Gardeners Green Thumb. It should help gardeners document their work and make the data reachable for the scientist in the project.
With Plaudio the gardeners can use their phones to record audio locally and then upload it later to a provided Nextcloud.
-
Download and install Docker(-Desktop): https://www.docker.com/products/docker-desktop
-
For this you can use a website like this: https://travistidwell.com/jsencrypt/demo/
-
Copy the private key into a file called "private.key" inside of the "docker" folder.
Copy the public key into a file called "public.key" inside of the "docker" folder. Also paste it into the "pubKey"-variable inside the "environment.prod.ts" which is inside the "client/src/environments" folder.
-
In the aformentioned "environment.prod.ts", fill in the url of the server which can be reached by the frontend (something like "http://localhost" or "https://example.com").
-
Execute "ng build --prod" inside the client folder.
-
Fill in the nextcloud related user and server information.
-
Execute "docker-compose up --build" inside the "docker" folder. You should be up and running now. There are two test users. One of which is the user "test" with the password "test".
-
Open a shell inside the docker folder.
-
Execute "docker-compose exec api /bin/bash". You now have a bash shell inside of the container.
-
Execute "node registerUsers.js". Follow the steps on the screen.
-
Execute "exit".
-
If not Done yet, follow all Steps in "How do I get set up for production?". After that stop Docker. (Strg + C in the Console where Docker is running)
-
In the aformentioned "environment.ts", fill in the url of the server which can be reached by the frontend (something like "http://localhost" or "https://example.com").
-
Execute "docker-compose up --build" inside the "docker" folder.
-
If not Done yet, execute "npm i" in the "client" folder. Execute "ng serve" in the "client" folder. Now you can visit the Website in a Webbrowser. (Normally it can be visited at "localhost:4200")
Warning: Because of "docker-compose up --build" there is another Website running at "localhost".
- in client execute "ng build --prod
- in \client\dist"EXAMPLE" execute "http-server -p 4200 -c-1"
- visit localhost:4200. Your Website should be shown.
- Press f12 and go to "Network". There should be a column, filled with "service-worker". If not Reload the site. If the reloading didn't showed "service-worker" in any Columns, then check if you build and started the App properly (look in Step 1 and 2).
- Base features
- Audio Recording
- Audio Management
- Connection to NextCloud
- Offline Function
- User Authentication
- User Management
- Client offline Verification
- UI improvements
- Translations
This project may include some private RSA keys or passwords that where used for development. These are just for testing and will not be used in production.